summaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 918da9f0..20b5999c 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -244,6 +244,9 @@ void focus_view(swayc_t *view) {
}
while (view && view->type != C_VIEW) {
view = view->focused;
+ if (view && view->type == C_OUTPUT) {
+ wlc_output_focus(view->handle);
+ }
}
if (view) {
wlc_view_set_state(view->handle, WLC_BIT_ACTIVATED, true);