diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-12-19 15:48:26 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-12-19 15:48:26 +0100 |
| commit | 96bacd3f9dff5b428a7826bbd507b1c02b2bcbba (patch) | |
| tree | 5674931747b9a1db95466b6cdd8ce95b5079b890 /FL/x11.H | |
| parent | 1e6ac9c9bb11d126e5046fd71b9e569e5adb593b (diff) | |
Procedure to instruct FLTK to use given X11 connexion (#149)
Diffstat (limited to 'FL/x11.H')
| -rw-r--r-- | FL/x11.H | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -26,6 +26,11 @@ /** Returns the X11 Display in use */ extern Display *fl_x11_display(); +/** Have FLTK use a pre-established X11 connexion. + This function should be called before FLTK attempts to open its own X11 connexion. + \param d the X11 Display* value representing a valid, pre-established X11 connexion + */ +extern void fl_x11_use_display(Display *d); /** Returns the Window reference for the given Fl_Window, or zero if not \c shown(). */ extern Window fl_x11_xid(const Fl_Window *win); /** Returns the Fl_Window corresponding to the given Window reference. */ @@ -58,6 +63,7 @@ extern GLXContext fl_x11_glcontext(GLContext rc); // constant info about the X server connection: extern FL_EXPORT Display *fl_display; extern FL_EXPORT Display *fl_x11_display(); +extern FL_EXPORT void fl_x11_use_display(Display *); extern FL_EXPORT Window fl_x11_xid(const Fl_Window *win); extern FL_EXPORT Fl_Window *fl_x11_find(Window); extern FL_EXPORT int fl_screen; |
