mirror of
https://github.com/fltk/fltk.git
synced 2026-06-02 15:46:52 +08:00
Avoid "Bogus FL_MOVE/FL_DRAG events" (#76)
Fix sending bogus events if CONSOLIDATE_MOTION is on.
This commit is contained in:
+1
-1
@@ -216,7 +216,7 @@ static void do_queued_events() {
|
|||||||
// we send FL_LEAVE only if the mouse did not enter some other window:
|
// we send FL_LEAVE only if the mouse did not enter some other window:
|
||||||
if (!in_a_window) Fl::handle(FL_LEAVE, 0);
|
if (!in_a_window) Fl::handle(FL_LEAVE, 0);
|
||||||
#if CONSOLIDATE_MOTION
|
#if CONSOLIDATE_MOTION
|
||||||
else if (send_motion == fl_xmousewin) {
|
else if (send_motion && send_motion == fl_xmousewin) {
|
||||||
send_motion = 0;
|
send_motion = 0;
|
||||||
Fl::handle(FL_MOVE, fl_xmousewin);
|
Fl::handle(FL_MOVE, fl_xmousewin);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user