mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
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.
This commit is contained in:
parent
bcde298a71
commit
076257a978
8 changed files with 61 additions and 53 deletions
|
|
@ -195,8 +195,8 @@ void arrange_workspace(struct sway_workspace *workspace) {
|
|||
double prev_y = workspace->y;
|
||||
workspace->width = area->width;
|
||||
workspace->height = area->height;
|
||||
workspace->x = output->wlr_output->lx + area->x;
|
||||
workspace->y = output->wlr_output->ly + area->y;
|
||||
workspace->x = output->lx + area->x;
|
||||
workspace->y = output->ly + area->y;
|
||||
|
||||
// Adjust any floating containers
|
||||
double diff_x = workspace->x - prev_x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue