From: Samuel Mannehed Date: Tue, 5 May 2020 08:39:13 +0000 (+0200) Subject: Ignore bogus FL_MOVE events from FLTK X-Git-Tag: v1.10.90~27^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6e8147eb122eb8670513d6001e413bd983e93075;p=tigervnc.git Ignore bogus FL_MOVE events from FLTK --- diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index 2ca13eea..f616f8c8 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx @@ -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.