From eed360ce09aca90f222570fdc05efd0891f4847d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 14 Sep 2021 18:25:56 +0200 Subject: [PATCH] sdlwindow: ignore key repeat events Wayland clients (incl. Xwayland) handle this. --- src/sdlwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sdlwindow.cpp b/src/sdlwindow.cpp index 6e0efc7..5a47ff8 100644 --- a/src/sdlwindow.cpp +++ b/src/sdlwindow.cpp @@ -155,6 +155,10 @@ void inputSDLThreadRun( void ) } } + // On Wayland, clients handle key repetition + if ( event.key.repeat ) + break; + wlserver_lock(); wlserver_key( key, event.type == SDL_KEYDOWN, event.key.timestamp ); wlserver_unlock();