summaryrefslogtreecommitdiff
path: root/src/drivers/X11
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-12-19 15:48:26 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-12-19 15:48:26 +0100
commit96bacd3f9dff5b428a7826bbd507b1c02b2bcbba (patch)
tree5674931747b9a1db95466b6cdd8ce95b5079b890 /src/drivers/X11
parent1e6ac9c9bb11d126e5046fd71b9e569e5adb593b (diff)
Procedure to instruct FLTK to use given X11 connexion (#149)
Diffstat (limited to 'src/drivers/X11')
-rw-r--r--src/drivers/X11/Fl_X11_Screen_Driver.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/X11/Fl_X11_Screen_Driver.cxx b/src/drivers/X11/Fl_X11_Screen_Driver.cxx
index 9e3465f13..7fc7e2b01 100644
--- a/src/drivers/X11/Fl_X11_Screen_Driver.cxx
+++ b/src/drivers/X11/Fl_X11_Screen_Driver.cxx
@@ -80,6 +80,9 @@ void Fl_X11_Screen_Driver::display(const char *d)
if (d) setenv("DISPLAY", d, 1);
}
+void fl_x11_use_display(Display *d) {
+ fl_display = d;
+}
int Fl_X11_Screen_Driver::XParseGeometry(const char* string, int* x, int* y,
unsigned int* width, unsigned int* height) {