mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-29 05:40:19 -04:00
WIP fix keybindings wrongly causing key repeats on key release
This commit is contained in:
parent
e23fec173a
commit
8d34d53ea5
1 changed files with 2 additions and 2 deletions
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,
|
/* On _press_ if there is no active screen locker,
|
||||||
* attempt to process a compositor keybinding. */
|
* attempt to process a compositor keybinding. */
|
||||||
|
bool run_func = event->state == WL_KEYBOARD_KEY_STATE_PRESSED;
|
||||||
if (!locked) {
|
if (!locked) {
|
||||||
bool run_func = event->state == WL_KEYBOARD_KEY_STATE_PRESSED;
|
|
||||||
for (i = 0; i < nsyms; i++)
|
for (i = 0; i < nsyms; i++)
|
||||||
handled = keybinding(mods, syms[i], run_func) || handled;
|
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->mods = mods;
|
||||||
group->keysyms = syms;
|
group->keysyms = syms;
|
||||||
group->nsyms = nsyms;
|
group->nsyms = nsyms;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue