diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2023-03-04 22:14:50 +0300 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2023-06-02 17:26:18 +0000 |
commit | b0437fc416e2938f49449c3d9cb1a8107544c335 (patch) | |
tree | 4cdf8d042e06d19be6f387f552863c019549fecc /tinywl | |
parent | c590bb600f9caf60a48263b0559c75f1515b1769 (diff) |
xdg-shell: use unified map logic
Diffstat (limited to 'tinywl')
-rw-r--r-- | tinywl/tinywl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tinywl/tinywl.c b/tinywl/tinywl.c index 835be217..77502b3f 100644 --- a/tinywl/tinywl.c +++ b/tinywl/tinywl.c @@ -795,9 +795,9 @@ static void server_new_xdg_surface(struct wl_listener *listener, void *data) { /* Listen to the various events it can emit */ view->map.notify = xdg_toplevel_map; - wl_signal_add(&xdg_surface->events.map, &view->map); + wl_signal_add(&xdg_surface->surface->events.map, &view->map); view->unmap.notify = xdg_toplevel_unmap; - wl_signal_add(&xdg_surface->events.unmap, &view->unmap); + wl_signal_add(&xdg_surface->surface->events.unmap, &view->unmap); view->destroy.notify = xdg_toplevel_destroy; wl_signal_add(&xdg_surface->events.destroy, &view->destroy); |