mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-26 17:54:14 +00:00
WIP fix keybindings wrongly causing key repeats on key release
This commit is contained in:
parent
e23fec173a
commit
8d34d53ea5
4
dwl.c
4
dwl.c
@ -1597,13 +1597,13 @@ keypress(struct wl_listener *listener, void *data)
|
||||
|
||||
/* On _press_ if there is no active screen locker,
|
||||
* attempt to process a compositor keybinding. */
|
||||
if (!locked) {
|
||||
bool run_func = event->state == WL_KEYBOARD_KEY_STATE_PRESSED;
|
||||
if (!locked) {
|
||||
for (i = 0; i < nsyms; i++)
|
||||
handled = keybinding(mods, syms[i], run_func) || handled;
|
||||
}
|
||||
|
||||
if (handled && group->wlr_group->keyboard.repeat_info.delay > 0) {
|
||||
if (handled && run_func && group->wlr_group->keyboard.repeat_info.delay > 0) {
|
||||
group->mods = mods;
|
||||
group->keysyms = syms;
|
||||
group->nsyms = nsyms;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user