Fix geometry

This commit is contained in:
Ryan Dwyer 2018-08-16 22:41:10 +10:00
parent b3ee9af0c8
commit 982a2d0c99
5 changed files with 57 additions and 10 deletions

View file

@ -525,6 +525,11 @@ static void surface_at_view(struct sway_container *swayc, double lx, double ly,
double view_sx = lx - sview->x;
double view_sy = ly - sview->y;
struct wlr_box geometry;
view_get_geometry(sview, &geometry);
view_sx += geometry.x;
view_sy += geometry.y;
double _sx, _sy;
struct wlr_surface *_surface = NULL;
switch (sview->type) {