From 42ebf79306f7840391bdcb2b363abcc09b591b0c Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Wed, 23 Feb 2000 09:23:53 +0000 Subject: New X function: fl_open_display(Display*) lets you run fltk on an already-created X connection. This should help with interoperability with Xt or other toolkits. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1013 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_x.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index a1e33518e..547250cbd 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_x.cxx,v 1.24.2.12 2000/02/18 07:11:09 bill Exp $" +// "$Id: Fl_x.cxx,v 1.24.2.13 2000/02/23 09:23:53 bill Exp $" // // X specific code for the Fast Light Tool Kit (FLTK). // @@ -258,6 +258,10 @@ void fl_open_display() { Display *d = XOpenDisplay(0); if (!d) Fl::fatal("Can't open display: %s",XDisplayName(0)); + fl_open_display(d); +} + +void fl_open_display(Display* d) { fl_display = d; wm_delete_window = XInternAtom(d,"WM_DELETE_WINDOW",0); @@ -880,5 +884,5 @@ void Fl_Window::make_current() { #endif // -// End of "$Id: Fl_x.cxx,v 1.24.2.12 2000/02/18 07:11:09 bill Exp $". +// End of "$Id: Fl_x.cxx,v 1.24.2.13 2000/02/23 09:23:53 bill Exp $". // -- cgit v1.2.3