mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
Implement fullscreen global
This commit is contained in:
parent
75406bb93b
commit
20aa8ee67d
22 changed files with 331 additions and 131 deletions
|
|
@ -261,9 +261,19 @@ void arrange_root(void) {
|
|||
root->y = layout_box->y;
|
||||
root->width = layout_box->width;
|
||||
root->height = layout_box->height;
|
||||
for (int i = 0; i < root->outputs->length; ++i) {
|
||||
struct sway_output *output = root->outputs->items[i];
|
||||
arrange_output(output);
|
||||
|
||||
if (root->fullscreen_global) {
|
||||
struct sway_container *fs = root->fullscreen_global;
|
||||
fs->x = root->x;
|
||||
fs->y = root->y;
|
||||
fs->width = root->width;
|
||||
fs->height = root->height;
|
||||
arrange_container(fs);
|
||||
} else {
|
||||
for (int i = 0; i < root->outputs->length; ++i) {
|
||||
struct sway_output *output = root->outputs->items[i];
|
||||
arrange_output(output);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue