aboutsummaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorcrondog <crondog@gmail.com>2016-01-05 10:55:29 +1100
committercrondog <crondog@gmail.com>2016-01-05 10:55:29 +1100
commitb755fd073e29819486b4899a40fb3a46dba0a81a (patch)
tree2d1c79afba126dac16a8c934ca509c6b20551417 /sway/handlers.c
parent27ab7d898219ff9a5aa2126d9f4ea9ee82403254 (diff)
Return focus to fullscreen view
This fixes https://github.com/SirCmpwn/sway/issues/431 by returning focus to the fullscreen view. Also it fixes the issue with the fullscreen view pointer not being set which did my head in
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c4
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) {
// refocus in-between command lists
set_focused_container(newview);
}
+ swayc_t *workspace = swayc_parent_by_type(focused, C_WORKSPACE);
+ if (workspace && workspace->fullscreen) {
+ set_focused_container(workspace->fullscreen);
+ }
} else {
swayc_t *output = swayc_parent_by_type(focused, C_OUTPUT);
wlc_handle *h = malloc(sizeof(wlc_handle));