summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2000-02-23 09:23:53 +0000
committerBill Spitzak <spitzak@gmail.com>2000-02-23 09:23:53 +0000
commit42ebf79306f7840391bdcb2b363abcc09b591b0c (patch)
tree9624a51958972727b1bce5d0396fd43540f49eca /src
parent5752429ca9d5fc8807cf713fc94d22a102a8c296 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_x.cxx8
1 files changed, 6 insertions, 2 deletions
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 $".
//