aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/desktop/transaction.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c
index 51c6e7fc..ccf60514 100644
--- a/sway/desktop/transaction.c
+++ b/sway/desktop/transaction.c
@@ -427,9 +427,10 @@ static void transaction_commit(struct sway_transaction *transaction) {
427 // means we can send a frame done event to make the client redraw it 427 // means we can send a frame done event to make the client redraw it
428 // as soon as possible. Additionally, this is required if a view is 428 // as soon as possible. Additionally, this is required if a view is
429 // mapping and its default geometry doesn't intersect an output. 429 // mapping and its default geometry doesn't intersect an output.
430 struct timespec when; 430 struct timespec now;
431 clock_gettime(CLOCK_MONOTONIC, &now);
431 wlr_surface_send_frame_done( 432 wlr_surface_send_frame_done(
432 node->sway_container->view->surface, &when); 433 node->sway_container->view->surface, &now);
433 } 434 }
434 if (node_is_view(node) && !node->sway_container->view->saved_buffer) { 435 if (node_is_view(node) && !node->sway_container->view->saved_buffer) {
435 view_save_buffer(node->sway_container->view); 436 view_save_buffer(node->sway_container->view);