aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/xdg_shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/xdg_shell.c')
-rw-r--r--sway/desktop/xdg_shell.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c
index fed820cf..95b5cb9d 100644
--- a/sway/desktop/xdg_shell.c
+++ b/sway/desktop/xdg_shell.c
@@ -332,8 +332,16 @@ static void handle_commit(struct wl_listener *listener, void *data) {
}
if (view->container->node.instruction) {
- transaction_notify_view_ready_by_serial(view,
+ bool successful = transaction_notify_view_ready_by_serial(view,
xdg_surface->current.configure_serial);
+
+ // If we saved the view and this commit isn't what we're looking for
+ // that means the user will never actually see the buffers submitted to
+ // us here. Just send frame done events to these surfaces so they can
+ // commit another time for us.
+ if (view->saved_surface_tree && !successful) {
+ view_send_frame_done(view);
+ }
}
}