diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-04-27 10:25:40 +0200 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-01-18 18:36:54 +0300 |
commit | 06ad734e70227ad0527fe11b88ad37e93005ce0c (patch) | |
tree | 5a5e2606242e3d229f4979d2b7c5352a139730b0 /sway/desktop/xwayland.c | |
parent | xwayland: Cleanup geometry handling on commit (diff) | |
download | sway-06ad734e70227ad0527fe11b88ad37e93005ce0c.tar.gz sway-06ad734e70227ad0527fe11b88ad37e93005ce0c.tar.zst sway-06ad734e70227ad0527fe11b88ad37e93005ce0c.zip |
scene_graph: Port view saved buffers
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r-- | sway/desktop/xwayland.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 0967c7fc..e0c80c07 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -442,8 +442,16 @@ static void handle_commit(struct wl_listener *listener, void *data) { | |||
442 | } | 442 | } |
443 | 443 | ||
444 | if (view->container->node.instruction) { | 444 | if (view->container->node.instruction) { |
445 | transaction_notify_view_ready_by_geometry(view, | 445 | bool successful = transaction_notify_view_ready_by_geometry(view, |
446 | xsurface->x, xsurface->y, state->width, state->height); | 446 | xsurface->x, xsurface->y, state->width, state->height); |
447 | |||
448 | // If we saved the view and this commit isn't what we're looking for | ||
449 | // that means the user will never actually see the buffers submitted to | ||
450 | // us here. Just send frame done events to these surfaces so they can | ||
451 | // commit another time for us. | ||
452 | if (view->saved_surface_tree && !successful) { | ||
453 | view_send_frame_done(view); | ||
454 | } | ||
447 | } | 455 | } |
448 | } | 456 | } |
449 | 457 | ||