sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit ddbf43779429426fc2e89cfe1da7f390042cdbcc
parent 84109431f7d7919789839716d53346290b51d0f7
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri,  6 Jul 2018 04:56:59 -0700

Merge pull request #2219 from RedSoxFan/fix-2111

Send pointer button events for keyboard-interactive layer surfaces
Diffstat:
Msway/input/cursor.c | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git 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);