diff options
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r-- | sway/tree/layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c index ae6db454..ad097f2e 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c | |||
@@ -138,7 +138,7 @@ void container_move_to(struct sway_container *container, | |||
138 | return; | 138 | return; |
139 | } | 139 | } |
140 | 140 | ||
141 | if (container->sway_view->is_fullscreen) { | 141 | if (container->type == C_VIEW && container->sway_view->is_fullscreen) { |
142 | struct sway_container *old_workspace = container; | 142 | struct sway_container *old_workspace = container; |
143 | if (old_workspace->type != C_WORKSPACE) { | 143 | if (old_workspace->type != C_WORKSPACE) { |
144 | old_workspace = container_parent(old_workspace, C_WORKSPACE); | 144 | old_workspace = container_parent(old_workspace, C_WORKSPACE); |