sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 2f7e435c6f2c7e4ace4f2566677d8730531985c8
parent 373def44468e0c919031a6ffe3049f91680e05ca
Author: Tony Crisci <tony@dubstepdish.com>
Date:   Wed, 27 Dec 2017 10:10:13 -0500

desktop: use wlr-surface commit

Diffstat:
Msway/desktop/wl_shell.c | 4+++-
Msway/desktop/xdg_shell_v6.c | 3++-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git 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) { // - 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); diff --git 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) { // - 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);