aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/arrange.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2019-01-25 08:29:21 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2019-01-25 08:29:21 +1000
commit20aa8ee67dc528299dbc8735220a1c081c7ff9f6 (patch)
tree685de48be3db51fc01510ccf051e2b63a4655fba /sway/tree/arrange.c
parentUpdate for swaywm/wlroots#1402 (diff)
downloadsway-20aa8ee67dc528299dbc8735220a1c081c7ff9f6.tar.gz
sway-20aa8ee67dc528299dbc8735220a1c081c7ff9f6.tar.zst
sway-20aa8ee67dc528299dbc8735220a1c081c7ff9f6.zip
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) {
261 root->y = layout_box->y; 261 root->y = layout_box->y;
262 root->width = layout_box->width; 262 root->width = layout_box->width;
263 root->height = layout_box->height; 263 root->height = layout_box->height;
264 for (int i = 0; i < root->outputs->length; ++i) { 264
265 struct sway_output *output = root->outputs->items[i]; 265 if (root->fullscreen_global) {
266 arrange_output(output); 266 struct sway_container *fs = root->fullscreen_global;
267 fs->x = root->x;
268 fs->y = root->y;
269 fs->width = root->width;
270 fs->height = root->height;
271 arrange_container(fs);
272 } else {
273 for (int i = 0; i < root->outputs->length; ++i) {
274 struct sway_output *output = root->outputs->items[i];
275 arrange_output(output);
276 }
267 } 277 }
268} 278}
269 279