summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2006-06-19 08:51:14 +0000
committerMatthias Melcher <fltk@matthiasm.com>2006-06-19 08:51:14 +0000
commit6190aa57287fad55e294e87f1e248dd3e335dd06 (patch)
treea8887e0c528f1b9cd6009840e91eac0f18739653
parent11de032d6da7fa057b48f95beac7fea9bccdb455 (diff)
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
-rw-r--r--CHANGES1
-rw-r--r--src/Fl.cxx1
2 files changed, 2 insertions, 0 deletions
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!