Fix pointer input for xdg-popups

This commit is contained in:
emersion 2018-04-12 17:19:17 -04:00
parent 5785170421
commit 90be52d070
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -438,11 +438,6 @@ struct sway_container *container_at(struct sway_container *parent,
view_sx, view_sy, &_sx, &_sy); view_sx, view_sy, &_sx, &_sy);
break; break;
case SWAY_VIEW_XDG_SHELL_V6: 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( _surface = wlr_xdg_surface_v6_surface_at(
sview->wlr_xdg_surface_v6, sview->wlr_xdg_surface_v6,
view_sx, view_sy, &_sx, &_sy); view_sx, view_sy, &_sx, &_sy);