aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/arrange.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-01-27 18:06:50 -0500
committerGitHub <noreply@github.com>2019-01-27 18:06:50 -0500
commit783fadab284c79c8e13625e5e2a2eefae02c75d3 (patch)
tree795c5c69a7fcfc9336115ac157a41b943190f206 /sway/tree/arrange.c
parent897250c65fb4d7123361dc6f77c2824179ed8885 (diff)
parent20aa8ee67dc528299dbc8735220a1c081c7ff9f6 (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.c16
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);
+ }
}
}