mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2025-01-01 06:20:17 +01:00
Merge pull request #1538 from acrisci/desktop-shell-surface-commit
desktop: use wlr-surface commit
This commit is contained in:
commit
622d9e1603
2 changed files with 5 additions and 2 deletions
|
@ -114,7 +114,9 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) {
|
||||||
// - Criteria
|
// - Criteria
|
||||||
|
|
||||||
sway_surface->commit.notify = handle_commit;
|
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;
|
sway_surface->destroy.notify = handle_destroy;
|
||||||
wl_signal_add(&shell_surface->events.destroy, &sway_surface->destroy);
|
wl_signal_add(&shell_surface->events.destroy, &sway_surface->destroy);
|
||||||
|
|
||||||
|
|
|
@ -120,7 +120,8 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) {
|
||||||
// - Criteria
|
// - Criteria
|
||||||
|
|
||||||
sway_surface->commit.notify = handle_commit;
|
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;
|
sway_surface->destroy.notify = handle_destroy;
|
||||||
wl_signal_add(&xdg_surface->events.destroy, &sway_surface->destroy);
|
wl_signal_add(&xdg_surface->events.destroy, &sway_surface->destroy);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue