aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/tree/container.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index a6142193..93cff7ff 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -984,6 +984,13 @@ void container_fullscreen_disable(struct sway_container *con) {
984 root->fullscreen_global = NULL; 984 root->fullscreen_global = NULL;
985 } 985 }
986 986
987 // If the container was mapped as fullscreen and set as floating by
988 // criteria, it needs to be reinitialized as floating to get the proper
989 // size and location
990 if (container_is_floating(con) && (con->width == 0 || con->height == 0)) {
991 container_init_floating(con);
992 }
993
987 con->fullscreen_mode = FULLSCREEN_NONE; 994 con->fullscreen_mode = FULLSCREEN_NONE;
988 container_end_mouse_operation(con); 995 container_end_mouse_operation(con);
989 ipc_event_window(con, "fullscreen_mode"); 996 ipc_event_window(con, "fullscreen_mode");