aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Scott Anderson <scott@anderso.nz>2019-04-21 23:02:29 +1200
committerLibravatar Simon Ser <contact@emersion.fr>2019-04-21 14:06:15 +0300
commite3d94cb83e3cc5eeb2a7761955c87a1f97bac514 (patch)
tree2dbbb03b1f6863e2acfbf1b97174e033f1ace8a2
parentValidate icon_struct in read_theme_file (diff)
downloadsway-e3d94cb83e3cc5eeb2a7761955c87a1f97bac514.tar.gz
sway-e3d94cb83e3cc5eeb2a7761955c87a1f97bac514.tar.zst
sway-e3d94cb83e3cc5eeb2a7761955c87a1f97bac514.zip
Fix uninitialized read for wlr_surface_send_frame
-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);