From bab3fdadf31fcd56fc0f4562b7fc3d28022cea39 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Tue, 15 Sep 2026 21:21:23 +0200 Subject: [PATCH] don't run keybindings twice when the shift keysym is the same For keys like F1-F12 the keysym with the shift is the same as without. Avoid running keybindings bound to these keys twice. --- dwl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 7994e41..d18d1f8 100644 --- a/dwl.c +++ b/dwl.c @@ -1749,6 +1749,7 @@ keypress(struct wl_listener *listener, void *data) consumed[event->keycode] = 1; key->func(&key->arg); handled = 1; + break; } } } @@ -1807,8 +1808,10 @@ keyrepeat(void *data) for (i = 0; i < group->nsyms; i++) { const Key *key = keybinding(group->mods, group->keysyms[i]); - if (key) + if (key) { key->func(&key->arg); + break; + } } return 0;