aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2022-02-07 20:51:19 +0100
committerLibravatar Kirill Primak <vyivel@eclair.cafe>2022-02-07 23:22:16 +0300
commitf795aa1c95b1283c0a32b03c80dced14389cd38a (patch)
tree24ff569d3aaacf9da1f9099d418b7de4fdfa6af9 /sway/tree/container.c
parentreadme: use relative links for translations (diff)
downloadsway-f795aa1c95b1283c0a32b03c80dced14389cd38a.tar.gz
sway-f795aa1c95b1283c0a32b03c80dced14389cd38a.tar.zst
sway-f795aa1c95b1283c0a32b03c80dced14389cd38a.zip
xdg-shell: use wlr_xdg_toplevel in sway_view
Improved type safety. Closes: https://github.com/swaywm/sway/issues/6813
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index bcac36b1..527759ba 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -194,7 +194,7 @@ static struct sway_container *surface_at_view(struct sway_container *con, double
194#endif 194#endif
195 case SWAY_VIEW_XDG_SHELL: 195 case SWAY_VIEW_XDG_SHELL:
196 _surface = wlr_xdg_surface_surface_at( 196 _surface = wlr_xdg_surface_surface_at(
197 view->wlr_xdg_surface, 197 view->wlr_xdg_toplevel->base,
198 view_sx, view_sy, &_sx, &_sy); 198 view_sx, view_sy, &_sx, &_sy);
199 break; 199 break;
200 } 200 }