diff options
author | Ronan Pigott <rpigott@berkeley.edu> | 2020-12-24 14:43:48 -0700 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-12-24 23:34:55 +0100 |
commit | d1c4ed18671bca0cabf07bd5514d58d3060a5e1c (patch) | |
tree | 452281ee82aa4477841cdd845fdbd9b6dcf8d2d3 /sway | |
parent | workspace: rework workspace prev|next like i3 (diff) | |
download | sway-d1c4ed18671bca0cabf07bd5514d58d3060a5e1c.tar.gz sway-d1c4ed18671bca0cabf07bd5514d58d3060a5e1c.tar.zst sway-d1c4ed18671bca0cabf07bd5514d58d3060a5e1c.zip |
container: set fullscreen mode before attempting focus
Diffstat (limited to 'sway')
-rw-r--r-- | sway/tree/container.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 4c573e83..6a9ce1c4 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -994,6 +994,7 @@ static void container_fullscreen_workspace(struct sway_container *con) { | |||
994 | bool enable = true; | 994 | bool enable = true; |
995 | set_fullscreen_iterator(con, &enable); | 995 | set_fullscreen_iterator(con, &enable); |
996 | container_for_each_child(con, set_fullscreen_iterator, &enable); | 996 | container_for_each_child(con, set_fullscreen_iterator, &enable); |
997 | con->fullscreen_mode = FULLSCREEN_WORKSPACE; | ||
997 | 998 | ||
998 | con->saved_x = con->x; | 999 | con->saved_x = con->x; |
999 | con->saved_y = con->y; | 1000 | con->saved_y = con->y; |
@@ -1017,7 +1018,6 @@ static void container_fullscreen_workspace(struct sway_container *con) { | |||
1017 | } | 1018 | } |
1018 | } | 1019 | } |
1019 | 1020 | ||
1020 | con->fullscreen_mode = FULLSCREEN_WORKSPACE; | ||
1021 | container_end_mouse_operation(con); | 1021 | container_end_mouse_operation(con); |
1022 | ipc_event_window(con, "fullscreen_mode"); | 1022 | ipc_event_window(con, "fullscreen_mode"); |
1023 | } | 1023 | } |