mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
Fix geometry
This commit is contained in:
parent
b3ee9af0c8
commit
982a2d0c99
5 changed files with 57 additions and 10 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue