diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-04-28 11:26:14 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-04-28 11:26:14 +1000 |
commit | 167c2e1aa99aa8011e169b0fb61c47953cc9a5f6 (patch) | |
tree | f312cac40cd542964f62d8b7ed53d44bb13dea37 /sway/tree/workspace.c | |
parent | Merge pull request #1866 from ggreer/swaybar-cmd-sh (diff) | |
download | sway-167c2e1aa99aa8011e169b0fb61c47953cc9a5f6.tar.gz sway-167c2e1aa99aa8011e169b0fb61c47953cc9a5f6.tar.zst sway-167c2e1aa99aa8011e169b0fb61c47953cc9a5f6.zip |
Refactor arrange_windows()
Replaces arrange_windows() with arrange_root(), arrange_output(),
arrange_workspace() and arrange_children_of().
Also makes fullscreen views save and restore their dimensions, which
allows it to preserve any custom resize and is also a requirement for
floating views once they are implemented.
Diffstat (limited to 'sway/tree/workspace.c')
-rw-r--r-- | sway/tree/workspace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c index 66e1f7b9..f34baa9e 100644 --- a/sway/tree/workspace.c +++ b/sway/tree/workspace.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include "sway/input/input-manager.h" | 9 | #include "sway/input/input-manager.h" |
10 | #include "sway/input/seat.h" | 10 | #include "sway/input/seat.h" |
11 | #include "sway/ipc-server.h" | 11 | #include "sway/ipc-server.h" |
12 | #include "sway/tree/arrange.h" | ||
12 | #include "sway/tree/container.h" | 13 | #include "sway/tree/container.h" |
13 | #include "sway/tree/workspace.h" | 14 | #include "sway/tree/workspace.h" |
14 | #include "log.h" | 15 | #include "log.h" |
@@ -392,7 +393,7 @@ bool workspace_switch(struct sway_container *workspace) { | |||
392 | } | 393 | } |
393 | seat_set_focus(seat, next); | 394 | seat_set_focus(seat, next); |
394 | struct sway_container *output = container_parent(workspace, C_OUTPUT); | 395 | struct sway_container *output = container_parent(workspace, C_OUTPUT); |
395 | arrange_windows(output, -1, -1); | 396 | arrange_output(output); |
396 | return true; | 397 | return true; |
397 | } | 398 | } |
398 | 399 | ||