diff options
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index d8ad3bc0..1cf5c8e7 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -169,8 +169,8 @@ static struct sway_container *surface_at_view(struct sway_container *con, double | |||
169 | return NULL; | 169 | return NULL; |
170 | } | 170 | } |
171 | struct sway_view *view = con->view; | 171 | struct sway_view *view = con->view; |
172 | double view_sx = lx - con->content_x + view->geometry.x; | 172 | double view_sx = lx - con->surface_x + view->geometry.x; |
173 | double view_sy = ly - con->content_y + view->geometry.y; | 173 | double view_sy = ly - con->surface_y + view->geometry.y; |
174 | 174 | ||
175 | double _sx, _sy; | 175 | double _sx, _sy; |
176 | struct wlr_surface *_surface = NULL; | 176 | struct wlr_surface *_surface = NULL; |