aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-01 18:23:40 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-01 18:23:40 +1000
commit2ceed512a82dbfdcf34305969c6d429cf0961816 (patch)
treee1daf3a26f7fda7a0af704d805cbdf89ba6a5607 /sway/tree/container.c
parentMove docblock and fix indenting of switch/case. (diff)
downloadsway-2ceed512a82dbfdcf34305969c6d429cf0961816.tar.gz
sway-2ceed512a82dbfdcf34305969c6d429cf0961816.tar.zst
sway-2ceed512a82dbfdcf34305969c6d429cf0961816.zip
Fix surface offset when using borders
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 03d7e49c..cb0233db 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -423,8 +423,8 @@ struct sway_container *container_at(struct sway_container *parent,
423 soutput->sway_output->wlr_output); 423 soutput->sway_output->wlr_output);
424 double ox = lx - output_box->x; 424 double ox = lx - output_box->x;
425 double oy = ly - output_box->y; 425 double oy = ly - output_box->y;
426 double view_sx = ox - swayc->x; 426 double view_sx = ox - sview->x;
427 double view_sy = oy - swayc->y; 427 double view_sy = oy - sview->y;
428 428
429 double _sx, _sy; 429 double _sx, _sy;
430 struct wlr_surface *_surface; 430 struct wlr_surface *_surface;