aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-12-27 07:56:28 -0800
committerLibravatar GitHub <noreply@github.com>2017-12-27 07:56:28 -0800
commit622d9e1603dd7ed2b7b2fc73265cd05f614ef8da (patch)
tree0abde2b463904c40eeaf06b7a1b93ec36f276438
parentMerge pull request #1505 from acrisci/feature/input (diff)
parentdesktop: use wlr-surface commit (diff)
downloadsway-622d9e1603dd7ed2b7b2fc73265cd05f614ef8da.tar.gz
sway-622d9e1603dd7ed2b7b2fc73265cd05f614ef8da.tar.zst
sway-622d9e1603dd7ed2b7b2fc73265cd05f614ef8da.zip
Merge pull request #1538 from acrisci/desktop-shell-surface-commit
desktop: use wlr-surface commit
-rw-r--r--sway/desktop/wl_shell.c4
-rw-r--r--sway/desktop/xdg_shell_v6.c3
2 files changed, 5 insertions, 2 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
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c
index 015cc9d0..5ff19f7e 100644
--- a/sway/desktop/xdg_shell_v6.c
+++ b/sway/desktop/xdg_shell_v6.c
@@ -120,7 +120,8 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) {
120 // - Criteria 120 // - Criteria
121 121
122 sway_surface->commit.notify = handle_commit; 122 sway_surface->commit.notify = handle_commit;
123 wl_signal_add(&xdg_surface->events.commit, &sway_surface->commit); 123 wl_signal_add(&xdg_surface->surface->events.commit, &sway_surface->commit);
124
124 sway_surface->destroy.notify = handle_destroy; 125 sway_surface->destroy.notify = handle_destroy;
125 wl_signal_add(&xdg_surface->events.destroy, &sway_surface->destroy); 126 wl_signal_add(&xdg_surface->events.destroy, &sway_surface->destroy);
126 127