diff options
| author | Drew DeVault <sir@cmpwn.com> | 2018-01-21 12:18:48 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-21 12:18:48 -0500 |
| commit | fab88cd96a65fac63bb72f44581faed6a26cdd98 (patch) | |
| tree | 091c3efc14e71e5e402f7727d7e134102d9b6432 | |
| parent | 0ff89cf0d12e3969af9e5463db41316c61bdf029 (diff) | |
| parent | 89188cf2b5818a81f0b6139068ef99245e19cc88 (diff) | |
Merge pull request #1563 from nearffxx/0.15
Fix out of focus when using mouse to change workspace
| -rw-r--r-- | sway/focus.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sway/focus.c b/sway/focus.c index e9b032f8..751de1f1 100644 --- a/sway/focus.c +++ b/sway/focus.c @@ -162,12 +162,12 @@ bool set_focused_container(swayc_t *c) { } if (c->type == C_VIEW) { wlc_view_set_state(c->handle, WLC_BIT_ACTIVATED, true); - } - if (!desktop_shell.is_locked) { - // If the system is locked, we do everything _but_ actually setting - // focus. This includes making our internals think that this view is - // focused. - wlc_view_focus(c->handle); + if (!desktop_shell.is_locked) { + // If the system is locked, we do everything _but_ actually setting + // focus. This includes making our internals think that this view is + // focused. + wlc_view_focus(c->handle); + } } if (c->parent->layout != L_TABBED && c->parent->layout != L_STACKED) { update_container_border(c); |
