diff options
Diffstat (limited to 'sway/focus.c')
-rw-r--r-- | sway/focus.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/focus.c b/sway/focus.c index 1f17dfc9..0ee10694 100644 --- a/sway/focus.c +++ b/sway/focus.c @@ -168,8 +168,11 @@ void set_focused_container(swayc_t *c) { } // activate current focus if (p->type == C_VIEW) { - wlc_view_focus(p->handle); wlc_view_set_state(p->handle, WLC_BIT_ACTIVATED, true); + //set focus if view_focus is unlocked + if (!locked_view_focus) { + wlc_view_focus(p->handle); + } } } } |