sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit e3d94cb83e3cc5eeb2a7761955c87a1f97bac514
parent 20762ecb3c34493a6de637d37234d738467f69a9
Author: Scott Anderson <scott@anderso.nz>
Date:   Sun, 21 Apr 2019 23:02:29 +1200

Fix uninitialized read for wlr_surface_send_frame

Diffstat:
Msway/desktop/transaction.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c @@ -427,9 +427,10 @@ static void transaction_commit(struct sway_transaction *transaction) { // means we can send a frame done event to make the client redraw it // as soon as possible. Additionally, this is required if a view is // mapping and its default geometry doesn't intersect an output. - struct timespec when; + struct timespec now; + clock_gettime(CLOCK_MONOTONIC, &now); wlr_surface_send_frame_done( - node->sway_container->view->surface, &when); + node->sway_container->view->surface, &now); } if (node_is_view(node) && !node->sway_container->view->saved_buffer) { view_save_buffer(node->sway_container->view);