]> source.dussan.org Git - tigervnc.git/commitdiff
Ignore bogus FL_MOVE events from FLTK
authorSamuel Mannehed <samuel@cendio.se>
Tue, 5 May 2020 08:39:13 +0000 (10:39 +0200)
committerPierre Ossman <ossman@cendio.se>
Tue, 26 May 2020 08:29:00 +0000 (10:29 +0200)
vncviewer/DesktopWindow.cxx

index 2ca13eea1270bb4b1663d0fa7e3716a35d30b371..f616f8c8a81667bff882884b4f748ee54346c46c 100644 (file)
@@ -755,6 +755,12 @@ int DesktopWindow::fltkHandle(int event, Fl_Window *win)
 {
   int ret;
 
+  // FLTK keeps spamming bogus FL_MOVE events if _any_ X event is
+  // received with the mouse pointer outside our windows
+  // https://github.com/fltk/fltk/issues/76
+  if ((event == FL_MOVE) && (win == NULL))
+    return 0;
+
   ret = Fl::handle_(event, win);
 
   // This is hackish and the result of the dodgy focus handling in FLTK.