From 816bc93b0455511f510494faf3c26aa5d90765fc Mon Sep 17 00:00:00 2001 From: Alexandre Bodelot Date: Mon, 7 Apr 2014 19:15:14 +0200 Subject: [PATCH] Fixed disabling key repeat on Linux --- src/SFML/Window/Unix/WindowImplX11.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/SFML/Window/Unix/WindowImplX11.cpp b/src/SFML/Window/Unix/WindowImplX11.cpp index c71518da..7e9394fa 100644 --- a/src/SFML/Window/Unix/WindowImplX11.cpp +++ b/src/SFML/Window/Unix/WindowImplX11.cpp @@ -890,6 +890,13 @@ bool WindowImplX11::processEvent(XEvent windowEvent) } break; } + + // Parent window changed + case ReparentNotify : + { + XSync(m_display, True); // Discard remaining events + break; + } } return true;