summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/Fl_x.cxx4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c0862717d..0c0865ae1 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -193,8 +193,8 @@ set(CFILES
fl_utf.c
)
+add_definitions(-DFL_LIBRARY)
if(APPLE)
- add_definitions(-DFL_LIBRARY)
set(MMFILES
Fl_cocoa.mm
Fl_Quartz_Printer.mm
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 9eff16f63..e981faa93 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -1873,7 +1873,11 @@ void Fl_Window::make_current() {
// update the cairo_t context
if (Fl::cairo_autolink_context()) Fl::cairo_make_current(this);
#endif
+}
+Window fl_xid(const Fl_Window* w)
+{
+ return Fl_X::i(w)->xid;
}
#ifdef USE_PRINT_BUTTON