aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/xdg_shell.c
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2023-03-05 23:49:45 +0300
committerSimon Ser <contact@emersion.fr>2023-06-02 20:11:42 +0200
commitc9e1dab3187d22ada0232d699e759a628e0ed185 (patch)
tree2838a14e3144fca71a7c693cd36ced33bf622bf7 /sway/desktop/xdg_shell.c
parent72881b5d120442e3a6f9c5b022c8d9cc05cb27c0 (diff)
chore: chase wlroots map logic unification
Diffstat (limited to 'sway/desktop/xdg_shell.c')
-rw-r--r--sway/desktop/xdg_shell.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c
index 9b6456da..377a0f1c 100644
--- a/sway/desktop/xdg_shell.c
+++ b/sway/desktop/xdg_shell.c
@@ -104,8 +104,8 @@ static struct sway_xdg_popup *popup_create(
wl_signal_add(&xdg_surface->events.destroy, &popup->destroy);
popup->destroy.notify = popup_handle_destroy;
- wl_signal_add(&xdg_surface->events.map, &popup->child.surface_map);
- wl_signal_add(&xdg_surface->events.unmap, &popup->child.surface_unmap);
+ wl_signal_add(&xdg_surface->surface->events.map, &popup->child.surface_map);
+ wl_signal_add(&xdg_surface->surface->events.unmap, &popup->child.surface_unmap);
popup_unconstrain(popup);
@@ -344,7 +344,7 @@ static void handle_request_fullscreen(struct wl_listener *listener, void *data)
struct wlr_xdg_toplevel *toplevel = xdg_shell_view->view.wlr_xdg_toplevel;
struct sway_view *view = &xdg_shell_view->view;
- if (!toplevel->base->mapped) {
+ if (!toplevel->base->surface->mapped) {
return;
}
@@ -529,10 +529,10 @@ void handle_xdg_shell_surface(struct wl_listener *listener, void *data) {
xdg_shell_view->view.wlr_xdg_toplevel = xdg_surface->toplevel;
xdg_shell_view->map.notify = handle_map;
- wl_signal_add(&xdg_surface->events.map, &xdg_shell_view->map);
+ wl_signal_add(&xdg_surface->surface->events.map, &xdg_shell_view->map);
xdg_shell_view->unmap.notify = handle_unmap;
- wl_signal_add(&xdg_surface->events.unmap, &xdg_shell_view->unmap);
+ wl_signal_add(&xdg_surface->surface->events.unmap, &xdg_shell_view->unmap);
xdg_shell_view->destroy.notify = handle_destroy;
wl_signal_add(&xdg_surface->events.destroy, &xdg_shell_view->destroy);