mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 20:44:01 +01:00
Fix uninitialized read for wlr_surface_send_frame
This commit is contained in:
parent
20762ecb3c
commit
e3d94cb83e
@ -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
|
// 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
|
// as soon as possible. Additionally, this is required if a view is
|
||||||
// mapping and its default geometry doesn't intersect an output.
|
// 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(
|
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) {
|
if (node_is_view(node) && !node->sway_container->view->saved_buffer) {
|
||||||
view_save_buffer(node->sway_container->view);
|
view_save_buffer(node->sway_container->view);
|
||||||
|
Loading…
Reference in New Issue
Block a user