]> git.mdlowis.com Git - proto/labwc.git/commit
keyboard: make keybind match stricter
authorJohan Malm <jgm323@gmail.com>
Tue, 26 Sep 2023 16:51:54 +0000 (17:51 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Wed, 27 Sep 2023 20:34:28 +0000 (21:34 +0100)
commite77330bc3fe733412e92f4e90d797d31ee6c5652
treecf0768390623864284a0819a3ec0f7ed8d3471fb
parent3022985ba797a061df8c8ac33b2dfb77bf20dcb3
keyboard: make keybind match stricter

...and avoid failing to send release events to clients for any keys that were
not absorbed by a keybind.

Do not match keybinds if there are other non-modifier keys (not part of any
defined bind) pressed at the same time.

Only store non-modifier keycodes in the key-state.c 'pressed' array.
This makes the call to wlr_seat_keyboard_notify_enter() in seat_focus()
consistent with the equivalent in sway (in seat_keyboard_notify_enter()).

Fixes: issue #1091
include/key-state.h
src/key-state.c
src/keyboard.c