summaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index db780270..1dc4be4b 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -525,6 +525,11 @@ static void surface_at_view(struct sway_container *swayc, double lx, double ly,
525 double view_sx = lx - sview->x; 525 double view_sx = lx - sview->x;
526 double view_sy = ly - sview->y; 526 double view_sy = ly - sview->y;
527 527
528 struct wlr_box geometry;
529 view_get_geometry(sview, &geometry);
530 view_sx += geometry.x;
531 view_sy += geometry.y;
532
528 double _sx, _sy; 533 double _sx, _sy;
529 struct wlr_surface *_surface = NULL; 534 struct wlr_surface *_surface = NULL;
530 switch (sview->type) { 535 switch (sview->type) {