diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-04-21 23:02:29 +1200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-04-21 23:02:29 +1200 |
| commit | 394bc05588c0d7a69863e7ed7867379104f02dbb (patch) | |
| tree | 2dbbb03b1f6863e2acfbf1b97174e033f1ace8a2 | |
| parent | c30b68ba71a5afe7f8a6d52ba8a6154313e32f36 (diff) | |
Fix uninitialized read for wlr_surface_send_frame
| -rw-r--r-- | sway/desktop/transaction.c | 5 |
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) { // 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); |
