summaryrefslogtreecommitdiff
path: root/sway/desktop/xdg_shell.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2018-08-15 17:16:32 -0400
committerGitHub <[email protected]>2018-08-15 17:16:32 -0400
commit98ed05225e06618533fa0439fdc83463cb9f1d2e (patch)
treefa71845d227eb8c78a4eb283238498f3da25cf21 /sway/desktop/xdg_shell.c
parent647ace1d6de5abe4c469db2e4e9590e3ef2168b9 (diff)
parentc3ef36d6b5d36f783f41b8860cee321b652f91e3 (diff)
Merge pull request #2458 from RyanDwyer/cleanup-transactions
Simplify transactions
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);