diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-01-27 18:06:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-27 18:06:50 -0500 |
commit | 783fadab284c79c8e13625e5e2a2eefae02c75d3 (patch) | |
tree | 795c5c69a7fcfc9336115ac157a41b943190f206 /sway/tree/arrange.c | |
parent | 897250c65fb4d7123361dc6f77c2824179ed8885 (diff) | |
parent | 20aa8ee67dc528299dbc8735220a1c081c7ff9f6 (diff) |
Merge pull request #3423 from RyanDwyer/fullscreen-global
Implement fullscreen global
Diffstat (limited to 'sway/tree/arrange.c')
-rw-r--r-- | sway/tree/arrange.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/sway/tree/arrange.c b/sway/tree/arrange.c index f78d95a4..da372aa4 100644 --- a/sway/tree/arrange.c +++ b/sway/tree/arrange.c @@ -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); + } } } |