aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/layout.c
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-04-17 09:31:34 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-04-17 09:31:34 +1000
commitc685ef081f090d1e15428f55426e02f2274312d0 (patch)
treee4997c84099e962a0c00a8fea22be30964cecda3 /sway/tree/layout.c
parentbfd5834f4c1046c234ceaae212e65e045cd51460 (diff)
Create sway_workspace struct.
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r--sway/tree/layout.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c
index ad097f2e..62219bb1 100644
--- a/sway/tree/layout.c
+++ b/sway/tree/layout.c
@@ -572,7 +572,7 @@ void arrange_windows(struct sway_container *container,
return;
case C_WORKSPACE:
{
- if (container->fullscreen) {
+ if (container->sway_workspace->fullscreen) {
return;
}
struct sway_container *output =
@@ -847,22 +847,6 @@ struct sway_container *container_get_in_direction(
}
}
- // TODO WLR fullscreen
- /*
- if (container->type == C_VIEW && swayc_is_fullscreen(container)) {
- wlr_log(L_DEBUG, "Moving from fullscreen view, skipping to output");
- container = container_parent(container, C_OUTPUT);
- get_layout_center_position(container, &abs_pos);
- struct sway_container *output =
- swayc_adjacent_output(container, dir, &abs_pos, true);
- return get_swayc_in_output_direction(output, dir);
- }
- if (container->type == C_WORKSPACE && container->fullscreen) {
- sway_log(L_DEBUG, "Moving to fullscreen view");
- return container->fullscreen;
- }
- */
-
struct sway_container *wrap_candidate = NULL;
while (true) {
bool can_move = false;