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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c
index af9d49b8..6a7a3f7f 100644
--- a/sway/desktop/xdg_shell.c
+++ b/sway/desktop/xdg_shell.c
@@ -254,8 +254,9 @@ static void handle_commit(struct wl_listener *listener, void *data) {
return;
}
- if (view->swayc->instructions->length) {
- transaction_notify_view_ready(view, xdg_surface->configure_serial);
+ if (view->swayc->instruction) {
+ transaction_notify_view_ready_by_serial(view,
+ xdg_surface->configure_serial);
}
view_damage_from(view);