aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2018-06-30 11:11:06 +0100
committerRostislav Pehlivanov <atomnuker@gmail.com>2018-06-30 11:11:06 +0100
commitf42bf0ad4abe185200b68ebce4848b80366cc474 (patch)
treedb09a5845214199b2e56aad3dabdb1373f7596d0
parente0d0e8f840271ab12533cb16c9a7ccba237adcb3 (diff)
downloadsway-f42bf0ad4abe185200b68ebce4848b80366cc474.tar.xz
container_at_view: don't offset the view by the window geometry
Fixes floating window input offsets. As discussed on IRC with emersion, this shouldn't have been done in the first place.
-rw-r--r--sway/tree/container.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index d8d5c34a..2de0c7a8 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -507,21 +507,11 @@ static struct sway_container *container_at_view(struct sway_container *swayc,
view_sx, view_sy, &_sx, &_sy);
break;
case SWAY_VIEW_XDG_SHELL_V6:
- // the top left corner of the sway container is the
- // coordinate of the top left corner of the window geometry
- view_sx += sview->wlr_xdg_surface_v6->geometry.x;
- view_sy += sview->wlr_xdg_surface_v6->geometry.y;
-
_surface = wlr_xdg_surface_v6_surface_at(
sview->wlr_xdg_surface_v6,
view_sx, view_sy, &_sx, &_sy);
break;
case SWAY_VIEW_XDG_SHELL:
- // the top left corner of the sway container is the
- // coordinate of the top left corner of the window geometry
- view_sx += sview->wlr_xdg_surface->geometry.x;
- view_sy += sview->wlr_xdg_surface->geometry.y;
-
_surface = wlr_xdg_surface_surface_at(
sview->wlr_xdg_surface,
view_sx, view_sy, &_sx, &_sy);