]> source.dussan.org Git - tigervnc.git/commitdiff
Ignore FLTK events when we have low level hooks
authorPierre Ossman <ossman@cendio.se>
Tue, 19 Aug 2014 12:06:53 +0000 (14:06 +0200)
committerPierre Ossman <ossman@cendio.se>
Fri, 22 Aug 2014 13:10:28 +0000 (15:10 +0200)
Some events can sneak through, e.g. from some virtual keyboards.
We need to ignore these to avoid confusion.

vncviewer/Viewport.cxx

index 027ca54ccecb887af8220f26f824b2a6cadde2dd..917a981783794ecabc007b398a786ab0ec669bc7 100644 (file)
@@ -1025,6 +1025,10 @@ void Viewport::handleFLTKKeyPress(void)
 {
   rdr::U32 keySym;
 
+#ifdef HAVE_FLTK_XHANDLERS
+  return;
+#endif
+
   keySym = translateKeyEvent();
   if (keySym == NoSymbol)
     return;