diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-01-05 01:14:28 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-01-05 01:14:28 +0100 |
commit | 5af4e747d311a5b4059561078976c167df057bd8 (patch) | |
tree | 9ad4317e4c86bee12c4f88ee8ff371a3d3f2f2f0 /sway/handlers.c | |
parent | Merge pull request #432 from mikkeloscar/fix-sway-multikey (diff) | |
parent | Return focus to fullscreen view (diff) | |
download | sway-5af4e747d311a5b4059561078976c167df057bd8.tar.gz sway-5af4e747d311a5b4059561078976c167df057bd8.tar.zst sway-5af4e747d311a5b4059561078976c167df057bd8.zip |
Merge pull request #433 from crondog/issue431
Return focus to fullscreen view
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 6c6d0e60..3cc5cf3e 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -220,6 +220,10 @@ static bool handle_view_created(wlc_handle handle) { | |||
220 | // refocus in-between command lists | 220 | // refocus in-between command lists |
221 | set_focused_container(newview); | 221 | set_focused_container(newview); |
222 | } | 222 | } |
223 | swayc_t *workspace = swayc_parent_by_type(focused, C_WORKSPACE); | ||
224 | if (workspace && workspace->fullscreen) { | ||
225 | set_focused_container(workspace->fullscreen); | ||
226 | } | ||
223 | } else { | 227 | } else { |
224 | swayc_t *output = swayc_parent_by_type(focused, C_OUTPUT); | 228 | swayc_t *output = swayc_parent_by_type(focused, C_OUTPUT); |
225 | wlc_handle *h = malloc(sizeof(wlc_handle)); | 229 | wlc_handle *h = malloc(sizeof(wlc_handle)); |