Fix surface offset when using borders

This commit is contained in:
Ryan Dwyer 2018-05-01 18:23:40 +10:00
parent abcad0ece9
commit 2ceed512a8

View file

@ -423,8 +423,8 @@ struct sway_container *container_at(struct sway_container *parent,
soutput->sway_output->wlr_output); soutput->sway_output->wlr_output);
double ox = lx - output_box->x; double ox = lx - output_box->x;
double oy = ly - output_box->y; double oy = ly - output_box->y;
double view_sx = ox - swayc->x; double view_sx = ox - sview->x;
double view_sy = oy - swayc->y; double view_sy = oy - sview->y;
double _sx, _sy; double _sx, _sy;
struct wlr_surface *_surface; struct wlr_surface *_surface;