summaryrefslogtreecommitdiff
path: root/src/Fl_grab.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-01-04 23:09:32 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-01-04 23:09:32 +0000
commitb1520373aebb3f16e1aad19d253c1ec12439664c (patch)
treefc48095864b484ab563a34f65040d00a8a3a9c54 /src/Fl_grab.cxx
parenteb1abad3ca43963f7826f067e70bc3a20db352da (diff)
Created pseudo code for all FL_PORTED section so that FLTK compiles and links (Xcode, hello, other C flags: -D FL_PORTING -U __APPLE__ -U __APPLE_QUARTZ__)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@10993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_grab.cxx')
-rw-r--r--src/Fl_grab.cxx19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/Fl_grab.cxx b/src/Fl_grab.cxx
index 9b0446d74..35d69205a 100644
--- a/src/Fl_grab.cxx
+++ b/src/Fl_grab.cxx
@@ -30,21 +30,20 @@
extern void fl_fix_focus(); // in Fl.cxx
-#if defined(WIN32) || defined(__APPLE__)
-#elif defined(FL_PORTING)
-# pragma message "FL_PORTING: tell a window to grab all following events"
-#else
-#endif
-
#ifdef WIN32
// We have to keep track of whether we have captured the mouse, since
// MSWindows shows little respect for this... Grep for fl_capture to
// see where and how this is used.
extern HWND fl_capture;
-#endif
-#ifdef __APPLE__
+#elif defined(__APPLE__)
extern void *fl_capture;
+
+#elif defined(FL_PORTING)
+# pragma message "FL_PORTING: tell a window to grab all following events"
+
+#else // X11
+
#endif
void Fl::grab(Fl_Window* win) {
@@ -65,6 +64,8 @@ void Fl::grab(Fl_Window* win) {
#elif defined(__APPLE__)
fl_capture = Fl_X::i(first_window())->xid;
Fl_X::i(first_window())->set_key_window();
+#elif defined(FL_PORTING)
+# pragma message "FL_PORTING: implement event grabbing"
#else
Window xid = fullscreen_win ? fl_xid(fullscreen_win) : fl_xid(first_window());
XGrabPointer(fl_display,
@@ -93,6 +94,8 @@ void Fl::grab(Fl_Window* win) {
ReleaseCapture();
#elif defined(__APPLE__)
fl_capture = 0;
+#elif defined(FL_PORTING)
+# pragma message "FL_PORTING: implement event grabbing"
#else
// We must keep the grab in the non-EWMH fullscreen case
if (!fullscreen_win || Fl_X::ewmh_supported()) {