diff options
author | emersion <contact@emersion.fr> | 2019-03-11 11:45:01 +0100 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-03-11 12:43:01 -0400 |
commit | 076257a978ce5f93b9b1613e43a067e602b5b041 (patch) | |
tree | f87dcb88bee0097cbf741df180f17d06299087cf /sway/tree/arrange.c | |
parent | Fix size_t temporary underflow in log_loaded_themes (diff) | |
download | sway-076257a978ce5f93b9b1613e43a067e602b5b041.tar.gz sway-076257a978ce5f93b9b1613e43a067e602b5b041.tar.zst sway-076257a978ce5f93b9b1613e43a067e602b5b041.zip |
Stop using wlr_output->{lx,ly}
Also fixes sway_output->{lx,ly,width,height} not being updated. Also fixes
output_get_in_direction adding buffer coords to layout coords.
Diffstat (limited to 'sway/tree/arrange.c')
-rw-r--r-- | sway/tree/arrange.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/arrange.c b/sway/tree/arrange.c index 438a2133..8583c53e 100644 --- a/sway/tree/arrange.c +++ b/sway/tree/arrange.c | |||
@@ -195,8 +195,8 @@ void arrange_workspace(struct sway_workspace *workspace) { | |||
195 | double prev_y = workspace->y; | 195 | double prev_y = workspace->y; |
196 | workspace->width = area->width; | 196 | workspace->width = area->width; |
197 | workspace->height = area->height; | 197 | workspace->height = area->height; |
198 | workspace->x = output->wlr_output->lx + area->x; | 198 | workspace->x = output->lx + area->x; |
199 | workspace->y = output->wlr_output->ly + area->y; | 199 | workspace->y = output->ly + area->y; |
200 | 200 | ||
201 | // Adjust any floating containers | 201 | // Adjust any floating containers |
202 | double diff_x = workspace->x - prev_x; | 202 | double diff_x = workspace->x - prev_x; |