summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2002-03-09 21:33:54 +0000
committerBill Spitzak <spitzak@gmail.com>2002-03-09 21:33:54 +0000
commit1a8da69ca397bf17f5ca099910acac29e6462692 (patch)
tree8cd219e98578b3929c3c4550b505254b75b5fa9b /src/Fl.cxx
parent2addf953f0bbc24a5c106211b4a89d7df366f3fb (diff)
Same change as for fltk2.0 to fix warning messages from Xft.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1996 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl.cxx')
-rw-r--r--src/Fl.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index 7c34badea..d0eae5094 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl.cxx,v 1.24.2.41.2.22 2002/03/07 19:22:56 spitzak Exp $"
+// "$Id: Fl.cxx,v 1.24.2.41.2.23 2002/03/09 21:33:54 spitzak Exp $"
//
// Main event handling code for the Fast Light Tool Kit (FLTK).
//
@@ -669,6 +669,10 @@ int Fl::handle(int event, Fl_Window* window)
////////////////////////////////////////////////////////////////
// hide() destroys the X window, it does not do unmap!
+#if !defined(_WIN32) && USE_XFT
+extern void fl_destroy_xft_draw(Window);
+#endif
+
void Fl_Window::hide() {
clear_visible();
@@ -734,6 +738,9 @@ void Fl_Window::hide() {
XDestroyWindow(fl_display, x->xid);
}
#else
+# if USE_XFT
+ fl_destroy_xft_draw(x->xid);
+# endif
XDestroyWindow(fl_display, x->xid);
#endif
@@ -882,5 +889,5 @@ void Fl_Window::flush() {
}
//
-// End of "$Id: Fl.cxx,v 1.24.2.41.2.22 2002/03/07 19:22:56 spitzak Exp $".
+// End of "$Id: Fl.cxx,v 1.24.2.41.2.23 2002/03/09 21:33:54 spitzak Exp $".
//