diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-04-26 14:15:55 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-04-26 14:15:55 +0200 |
| commit | 7a7f3c33243912b118f2fbf813dc5d80e8fef501 (patch) | |
| tree | dc52d234d861671d66404773ed13174680c93b9d /src | |
| parent | 7b70d2c90dd4cab9189942e26445203257c80fe7 (diff) | |
Avoid "Bogus FL_MOVE/FL_DRAG events" (#76)
Fix sending bogus events if CONSOLIDATE_MOTION is on.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_x.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 35f7e4d8f..6bce6293c 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -216,7 +216,7 @@ static void do_queued_events() { // we send FL_LEAVE only if the mouse did not enter some other window: if (!in_a_window) Fl::handle(FL_LEAVE, 0); #if CONSOLIDATE_MOTION - else if (send_motion == fl_xmousewin) { + else if (send_motion && send_motion == fl_xmousewin) { send_motion = 0; Fl::handle(FL_MOVE, fl_xmousewin); } |
