summaryrefslogtreecommitdiff
path: root/src/Fl_x.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-09-15 09:05:16 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-09-15 09:05:16 +0200
commitdfd208e171590c0fae3558c84252550ed9caa6a1 (patch)
tree3d213f215638eb31c82020543d4df62a3f47a2ed /src/Fl_x.cxx
parentafeaf129349d09e21bbbf8c5c486865140aac9d3 (diff)
Complete Wayland-related part of issue #1295
Diffstat (limited to 'src/Fl_x.cxx')
-rw-r--r--src/Fl_x.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index fed46a638..7a979ec42 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -103,8 +103,8 @@ extern int fl_send_system_handlers(void *e);
#if FLTK_CONSOLIDATE_MOTION
static Fl_Window* send_motion;
-extern Fl_Window* fl_xmousewin;
#endif
+extern Fl_Window* fl_xmousewin;
static bool in_a_window; // true if in any of our windows, even destroyed ones
static void do_queued_events() {
@@ -2199,9 +2199,9 @@ int fl_handle(const XEvent& thisevent)
if (xevent.xcrossing.detail == NotifyInferior) break;
set_event_xy(window);
Fl::e_state = xevent.xcrossing.state << 16;
-#if FLTK_CONSOLIDATE_MOTION
+//#if FLTK_CONSOLIDATE_MOTION // this needs to be commented out in 1.4 and above (see #1295)
fl_xmousewin = 0;
-#endif // FLTK_CONSOLIDATE_MOTION
+//#endif // FLTK_CONSOLIDATE_MOTION
in_a_window = false; // make do_queued_events produce FL_LEAVE event
return 0;