diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2020-12-24 14:43:48 -0700 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2020-12-24 14:43:48 -0700 |
| commit | 4cf9566a024ba93f534abae648fcfa6f4eb3dd3e (patch) | |
| tree | 452281ee82aa4477841cdd845fdbd9b6dcf8d2d3 | |
| parent | 964ad8f0dfc7287b44e77594a8335bbca89798f3 (diff) | |
container: set fullscreen mode before attempting focus
| -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) { bool enable = true; set_fullscreen_iterator(con, &enable); container_for_each_child(con, set_fullscreen_iterator, &enable); + con->fullscreen_mode = FULLSCREEN_WORKSPACE; con->saved_x = con->x; con->saved_y = con->y; @@ -1017,7 +1018,6 @@ static void container_fullscreen_workspace(struct sway_container *con) { } } - con->fullscreen_mode = FULLSCREEN_WORKSPACE; container_end_mouse_operation(con); ipc_event_window(con, "fullscreen_mode"); } |
