From 052863dcfe0ef52da49041c8ee03da7341ab39ff Mon Sep 17 00:00:00 2001 From: IoIxD Date: Sun, 24 May 2026 22:54:50 -0700 Subject: [PATCH] wayland: set a default for keyboard_repeat/keyboard_rate in case a compostior doesn't send key_repeat_info --- src/backend/wayland/wayland.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/wayland/wayland.c b/src/backend/wayland/wayland.c index 939c668..d8c3b20 100644 --- a/src/backend/wayland/wayland.c +++ b/src/backend/wayland/wayland.c @@ -677,6 +677,10 @@ static void widget_setup(MwLL r, MwLL parent, int x, int y, int width, int heigh MwLLForceRender(parent); } + /* If the compositor never sets the keyboard repeat info, we'll copy KDE's default of... */ + r->wayland.keyboard_delay = 600; /* starting at 600ms... */ + r->wayland.keyboard_rate = 25; /* and going every 25ms... */ + if(!r->wayland.has_decorations) { MwLLBeginDraw(r); MwLLEndDraw(r);