aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index ff10c1ab..21a0cd76 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -1063,7 +1063,8 @@ list_t *container_get_current_siblings(struct sway_container *container) {
1063} 1063}
1064 1064
1065void container_handle_fullscreen_reparent(struct sway_container *con) { 1065void container_handle_fullscreen_reparent(struct sway_container *con) {
1066 if (!con->is_fullscreen || con->workspace->fullscreen == con) { 1066 if (!con->is_fullscreen || !con->workspace ||
1067 con->workspace->fullscreen == con) {
1067 return; 1068 return;
1068 } 1069 }
1069 if (con->workspace->fullscreen) { 1070 if (con->workspace->fullscreen) {