summaryrefslogtreecommitdiff
path: root/FL/x.H
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-01-20 13:22:30 +0000
committerManolo Gouy <Manolo>2011-01-20 13:22:30 +0000
commita306fe46d39e5c54f90f288846da7b9a0e762cb5 (patch)
tree5173a649518e6048e3dbe40f5d3d512f02670a83 /FL/x.H
parent30c1eed80b89dcf9ec17d2adbad2b867df57adf8 (diff)
Redefined fl_xid() as an inline function when used inside the FLTK library.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8295 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/x.H')
-rw-r--r--FL/x.H9
1 files changed, 7 insertions, 2 deletions
diff --git a/FL/x.H b/FL/x.H
index ce0cdd736..c022246eb 100644
--- a/FL/x.H
+++ b/FL/x.H
@@ -163,10 +163,15 @@ public:
extern FL_EXPORT char fl_override_redirect; // hack into Fl_X::make_xid()
extern FL_EXPORT int fl_background_pixel; // hack into Fl_X::make_xid()
+inline Window fl_xid(const Fl_Window* w) { return Fl_X::i(w)->xid; }
+
+#else
+
+extern Window fl_xid_(const Fl_Window* w);
+#define fl_xid(w) fl_xid_(w)
+
#endif // FL_LIBRARY || FL_INTERNALS
-// convert xid <-> Fl_Window:
-Window fl_xid(const Fl_Window*w);
FL_EXPORT Fl_Window* fl_find(Window xid);