summaryrefslogtreecommitdiff
path: root/src/Fl_x.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-09-15 09:17:56 +0000
committerPierre Ossman <ossman@cendio.se>2014-09-15 09:17:56 +0000
commite145df21652a643c358afabe979cdca8e0c55429 (patch)
tree908cb2516072100c3fc4198242e71e5d358955fb /src/Fl_x.cxx
parent321fb4ed7aa9e36e3b2fc5c95c3c2c3652179366 (diff)
Add methods to intercept low level system events.
This gives applications the means to handle some low level integration with the system that might otherwise not be possible without modifying FLTK itself. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_x.cxx')
-rw-r--r--src/Fl_x.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 7561919b9..35aa6fe63 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -194,6 +194,8 @@ void Fl::remove_fd(int n) {
remove_fd(n, -1);
}
+extern int fl_send_system_handlers(void *e);
+
#if CONSOLIDATE_MOTION
static Fl_Window* send_motion;
extern Fl_Window* fl_xmousewin;
@@ -204,6 +206,8 @@ static void do_queued_events() {
while (XEventsQueued(fl_display,QueuedAfterReading)) {
XEvent xevent;
XNextEvent(fl_display, &xevent);
+ if (fl_send_system_handlers(&xevent))
+ continue;
fl_handle(xevent);
}
// we send FL_LEAVE only if the mouse did not enter some other window: