desktop: use wlr-surface commit

This commit is contained in:
Tony Crisci 2017-12-27 10:10:13 -05:00
parent 373def4446
commit 2f7e435c6f
2 changed files with 5 additions and 2 deletions

View File

@ -114,7 +114,9 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) {
// - Criteria
sway_surface->commit.notify = handle_commit;
wl_signal_add(&shell_surface->events.commit, &sway_surface->commit);
wl_signal_add(&shell_surface->surface->events.commit,
&sway_surface->commit);
sway_surface->destroy.notify = handle_destroy;
wl_signal_add(&shell_surface->events.destroy, &sway_surface->destroy);

View File

@ -120,7 +120,8 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) {
// - Criteria
sway_surface->commit.notify = handle_commit;
wl_signal_add(&xdg_surface->events.commit, &sway_surface->commit);
wl_signal_add(&xdg_surface->surface->events.commit, &sway_surface->commit);
sway_surface->destroy.notify = handle_destroy;
wl_signal_add(&xdg_surface->events.destroy, &sway_surface->destroy);