summaryrefslogtreecommitdiffstats
path: root/sway/desktop/wl_shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/wl_shell.c')
-rw-r--r--sway/desktop/wl_shell.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/desktop/wl_shell.c b/sway/desktop/wl_shell.c
index e7150bf3..a7bb8eb5 100644
--- a/sway/desktop/wl_shell.c
+++ b/sway/desktop/wl_shell.c
@@ -114,7 +114,9 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) {
114 // - Criteria 114 // - Criteria
115 115
116 sway_surface->commit.notify = handle_commit; 116 sway_surface->commit.notify = handle_commit;
117 wl_signal_add(&shell_surface->events.commit, &sway_surface->commit); 117 wl_signal_add(&shell_surface->surface->events.commit,
118 &sway_surface->commit);
119
118 sway_surface->destroy.notify = handle_destroy; 120 sway_surface->destroy.notify = handle_destroy;
119 wl_signal_add(&shell_surface->events.destroy, &sway_surface->destroy); 121 wl_signal_add(&shell_surface->events.destroy, &sway_surface->destroy);
120 122