diff options
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 9bc4f544..2a428ca5 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -509,8 +509,8 @@ static void surface_at_view(struct sway_container *swayc, double lx, double ly, | |||
509 | return; | 509 | return; |
510 | } | 510 | } |
511 | struct sway_view *sview = swayc->sway_view; | 511 | struct sway_view *sview = swayc->sway_view; |
512 | double view_sx = lx - sview->x; | 512 | double view_sx = lx - sview->x + sview->geometry.x; |
513 | double view_sy = ly - sview->y; | 513 | double view_sy = ly - sview->y + sview->geometry.y; |
514 | 514 | ||
515 | double _sx, _sy; | 515 | double _sx, _sy; |
516 | struct wlr_surface *_surface = NULL; | 516 | struct wlr_surface *_surface = NULL; |
@@ -1065,6 +1065,7 @@ void container_set_geometry_from_floating_view(struct sway_container *con) { | |||
1065 | con->y = view->y - top; | 1065 | con->y = view->y - top; |
1066 | con->width = view->width + border_width * 2; | 1066 | con->width = view->width + border_width * 2; |
1067 | con->height = top + view->height + border_width; | 1067 | con->height = top + view->height + border_width; |
1068 | container_set_dirty(con); | ||
1068 | } | 1069 | } |
1069 | 1070 | ||
1070 | bool container_is_floating(struct sway_container *container) { | 1071 | bool container_is_floating(struct sway_container *container) { |