From a83c88d513cc639cdf79a1cd7e97cb978001b2ed Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 19 Aug 2014 14:06:53 +0200 Subject: [PATCH] Ignore FLTK events when we have low level hooks Some events can sneak through, e.g. from some virtual keyboards. We need to ignore these to avoid confusion. --- vncviewer/Viewport.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx index 027ca54c..917a9817 100644 --- a/vncviewer/Viewport.cxx +++ b/vncviewer/Viewport.cxx @@ -1025,6 +1025,10 @@ void Viewport::handleFLTKKeyPress(void) { rdr::U32 keySym; +#ifdef HAVE_FLTK_XHANDLERS + return; +#endif + keySym = translateKeyEvent(); if (keySym == NoSymbol) return; -- 2.39.5