mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -05:00
Don't use wlr_output properties
These properties are before rotation.
This commit is contained in:
parent
7586f150c0
commit
acc2628c79
10 changed files with 47 additions and 39 deletions
|
|
@ -53,10 +53,10 @@ struct sway_workspace *workspace_create(struct sway_output *output,
|
|||
return NULL;
|
||||
}
|
||||
node_init(&ws->node, N_WORKSPACE, ws);
|
||||
ws->x = output->wlr_output->lx;
|
||||
ws->y = output->wlr_output->ly;
|
||||
ws->width = output->wlr_output->width;
|
||||
ws->height = output->wlr_output->height;
|
||||
ws->x = output->lx;
|
||||
ws->y = output->ly;
|
||||
ws->width = output->width;
|
||||
ws->height = output->height;
|
||||
ws->name = name ? strdup(name) : NULL;
|
||||
ws->prev_split_layout = L_NONE;
|
||||
ws->layout = output_get_default_layout(output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue