aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xdg_shell.c
diff options
context:
space:
mode:
authorLibravatar Kirill Primak <vyivel@eclair.cafe>2023-03-05 23:49:45 +0300
committerLibravatar Simon Ser <contact@emersion.fr>2023-06-02 20:11:42 +0200
commitc9e1dab3187d22ada0232d699e759a628e0ed185 (patch)
tree2838a14e3144fca71a7c693cd36ced33bf622bf7 /sway/desktop/xdg_shell.c
parentxwayland: don't rely on event source being data (diff)
downloadsway-c9e1dab3187d22ada0232d699e759a628e0ed185.tar.gz
sway-c9e1dab3187d22ada0232d699e759a628e0ed185.tar.zst
sway-c9e1dab3187d22ada0232d699e759a628e0ed185.zip
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(
104 wl_signal_add(&xdg_surface->events.destroy, &popup->destroy); 104 wl_signal_add(&xdg_surface->events.destroy, &popup->destroy);
105 popup->destroy.notify = popup_handle_destroy; 105 popup->destroy.notify = popup_handle_destroy;
106 106
107 wl_signal_add(&xdg_surface->events.map, &popup->child.surface_map); 107 wl_signal_add(&xdg_surface->surface->events.map, &popup->child.surface_map);
108 wl_signal_add(&xdg_surface->events.unmap, &popup->child.surface_unmap); 108 wl_signal_add(&xdg_surface->surface->events.unmap, &popup->child.surface_unmap);
109 109
110 popup_unconstrain(popup); 110 popup_unconstrain(popup);
111 111
@@ -344,7 +344,7 @@ static void handle_request_fullscreen(struct wl_listener *listener, void *data)
344 struct wlr_xdg_toplevel *toplevel = xdg_shell_view->view.wlr_xdg_toplevel; 344 struct wlr_xdg_toplevel *toplevel = xdg_shell_view->view.wlr_xdg_toplevel;
345 struct sway_view *view = &xdg_shell_view->view; 345 struct sway_view *view = &xdg_shell_view->view;
346 346
347 if (!toplevel->base->mapped) { 347 if (!toplevel->base->surface->mapped) {
348 return; 348 return;
349 } 349 }
350 350
@@ -529,10 +529,10 @@ void handle_xdg_shell_surface(struct wl_listener *listener, void *data) {
529 xdg_shell_view->view.wlr_xdg_toplevel = xdg_surface->toplevel; 529 xdg_shell_view->view.wlr_xdg_toplevel = xdg_surface->toplevel;
530 530
531 xdg_shell_view->map.notify = handle_map; 531 xdg_shell_view->map.notify = handle_map;
532 wl_signal_add(&xdg_surface->events.map, &xdg_shell_view->map); 532 wl_signal_add(&xdg_surface->surface->events.map, &xdg_shell_view->map);
533 533
534 xdg_shell_view->unmap.notify = handle_unmap; 534 xdg_shell_view->unmap.notify = handle_unmap;
535 wl_signal_add(&xdg_surface->events.unmap, &xdg_shell_view->unmap); 535 wl_signal_add(&xdg_surface->surface->events.unmap, &xdg_shell_view->unmap);
536 536
537 xdg_shell_view->destroy.notify = handle_destroy; 537 xdg_shell_view->destroy.notify = handle_destroy;
538 wl_signal_add(&xdg_surface->events.destroy, &xdg_shell_view->destroy); 538 wl_signal_add(&xdg_surface->events.destroy, &xdg_shell_view->destroy);