diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-07-06 06:28:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-06 06:28:01 -0700 |
commit | 3d2595b1028ce1f7cf0ceff673e7180c6c991afb (patch) | |
tree | a645930a9b105185a5f2dbddbe8ca8acf50a4559 /sway/input | |
parent | f63b209d51bab84aacb001adfd443c7f4c9a8cfe (diff) | |
parent | a06d45a14d1f222a42d23bf1f49bb6995dc3b27b (diff) | |
download | sway-3d2595b1028ce1f7cf0ceff673e7180c6c991afb.tar.xz |
Merge branch 'master' into remove-input-fix
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/cursor.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 944e35aa..a2f11557 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -255,14 +255,12 @@ void dispatch_cursor_button(struct sway_cursor *cursor, wlr_layer_surface_from_wlr_surface(surface); if (layer->current.keyboard_interactive) { seat_set_focus_layer(cursor->seat, layer); - return; } - } - // Avoid moving keyboard focus from a surface that accepts it to one - // that does not unless the change would move us to a new workspace. - // - // This prevents, for example, losing focus when clicking on swaybar. - if (surface && cont && cont->type != C_VIEW) { + } else if (surface && cont && cont->type != C_VIEW) { + // Avoid moving keyboard focus from a surface that accepts it to one + // that does not unless the change would move us to a new workspace. + // + // This prevents, for example, losing focus when clicking on swaybar. struct sway_container *new_ws = cont; if (new_ws && new_ws->type != C_WORKSPACE) { new_ws = container_parent(new_ws, C_WORKSPACE); |