From 6e8147eb122eb8670513d6001e413bd983e93075 Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Tue, 5 May 2020 10:39:13 +0200 Subject: [PATCH] Ignore bogus FL_MOVE events from FLTK --- vncviewer/DesktopWindow.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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. -- 2.39.5