From 6190aa57287fad55e294e87f1e248dd3e335dd06 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 19 Jun 2006 08:51:14 +0000 Subject: It seems that the long standing window stacking order problem in MSWindows is now finally solved. The solution is too silly to belive. It seems like WIN32 needs a HideWindow before the DestroyWindow, or the window manager gets confused. DOH! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5215 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 1 + src/Fl.cxx | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index 54b403c87..cc2828deb 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,6 @@ CHANGES IN FLTK 1.1.8 + - Fixed WIN32 window stacking bug (STR #1296) - Fixed wrong code generated by Fluid for Scrollbars (STR #1287) - Loading a file would not update the Widget diff --git a/src/Fl.cxx b/src/Fl.cxx index 18ceb5d6d..600759b1e 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -952,6 +952,7 @@ void Fl_Window::hide() { if (ip->region) XDestroyRegion(ip->region); #ifdef WIN32 + CloseWindow(ip->xid); XDestroyWindow(fl_display, ip->xid); #elif defined(__APPLE_QD__) if ( !parent() ) // don't destroy shared windows! -- cgit v1.2.3