summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-02-03 15:58:13 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-02-03 15:58:13 +0100
commitb8ab77e39c01b9019edaeaa09d5d08c7b21f75ab (patch)
treee82178b792dcb56ee484aaa331dc1c975d8f40f2 /src
parenta9bdb7a7b4875060fcd984f342cd974a3c3f18ee (diff)
Don't "export" X11 specific fl_open_display() function
The X11 specific overloaded function fl_open_display(Display *) has never been documented but exposed (and "exported" in the ABI) in FL/platform.H which is not necessary. This internal function is now static and no longer exposed in the ABI. Don't confuse with fl_open_display() w/o arguments which is still exported and declared in FL/platform.H.
Diffstat (limited to 'src')
-rw-r--r--src/Fl_x.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index c5b481707..ab092f279 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -77,6 +77,8 @@ static bool have_xfixes = false;
extern Fl_Widget *fl_selection_requestor;
+static void open_display_i(Display *d); // open display (internal)
+
////////////////////////////////////////////////////////////////
// interface to poll/select call:
@@ -614,14 +616,14 @@ void Fl_X11_Screen_Driver::open_display_platform() {
Display *d = XOpenDisplay(0);
if (!d) Fl::fatal("Can't open display: %s",XDisplayName(0));
- fl_open_display(d);
+ open_display_i(d);
// the unique GC used by all X windows
GC gc = XCreateGC(fl_display, RootWindow(fl_display, fl_screen), 0, 0);
Fl_Graphics_Driver::default_driver().gc(gc);
}
-void fl_open_display(Display* d) {
+void open_display_i(Display* d) {
fl_display = d;
WM_DELETE_WINDOW = XInternAtom(d, "WM_DELETE_WINDOW", 0);