Remove unused code controlled by the FLTK_CONSOLIDATE_MOTION preprocessor variable.
This commit is contained in:
parent
2a5c2322f1
commit
c2185f31b9
@ -24,8 +24,8 @@ Changes in FLTK 1.4.0 Released: ??? ?? 2022
|
||||
- X11 platform: class Fl_Native_File_Chooser will run the KDE file dialog
|
||||
rather than the GTK dialog if the current desktop is KDE and if command
|
||||
"kdialog" is available on the running platform (issue #278).
|
||||
- The undocumented feature FLTK_CONSOLIDATE_MOTION is now OFF on X11 like
|
||||
on macOS. In FLTK 1.3 this feature has been ON on X11. The macro can now
|
||||
- The undocumented feature FLTK_CONSOLIDATE_MOTION is now OFF on X11 and
|
||||
removed on macOS. In FLTK 1.3 this feature has been ON on X11. The macro can now
|
||||
be set on the compiler commandline and can be used to reduce the number
|
||||
of mouse move events sent to the application but it may be unreliable.
|
||||
Recommendation: let it switched OFF unless you really need it.
|
||||
|
@ -14,10 +14,6 @@
|
||||
// https://www.fltk.org/bugs.php
|
||||
//
|
||||
|
||||
#ifndef FLTK_CONSOLIDATE_MOTION
|
||||
#define FLTK_CONSOLIDATE_MOTION 0
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
#include <pthread.h>
|
||||
}
|
||||
@ -111,11 +107,6 @@ static NSMutableArray *dropped_files_list = nil; // list of files dropped at app
|
||||
typedef void (*open_cb_f_type)(const char *);
|
||||
static Fl_Window *starting_moved_window = NULL; // the moved window which brings its subwins with it
|
||||
|
||||
#if FLTK_CONSOLIDATE_MOTION
|
||||
static Fl_Window* send_motion;
|
||||
extern Fl_Window* fl_xmousewin;
|
||||
#endif
|
||||
|
||||
enum { FLTKTimerEvent = 1, FLTKDataReadyEvent };
|
||||
|
||||
// Carbon functions and definitions
|
||||
@ -779,12 +770,6 @@ static int do_queued_events( double time = 0.0 )
|
||||
}
|
||||
fl_lock_function();
|
||||
|
||||
#if FLTK_CONSOLIDATE_MOTION
|
||||
if (send_motion && send_motion == fl_xmousewin) {
|
||||
send_motion = 0;
|
||||
Fl::handle(FL_MOVE, fl_xmousewin);
|
||||
}
|
||||
#endif
|
||||
return got_events;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user