diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index 600759b1e..d1a6ee812 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -952,7 +952,12 @@ void Fl_Window::hide() { if (ip->region) XDestroyRegion(ip->region); #ifdef WIN32 - CloseWindow(ip->xid); + // this little trickery seems to avoid the popup window stacking problem + HWND p = GetForegroundWindow(); + if (p==GetParent(ip->xid)) { + ShowWindow(ip->xid, SW_HIDE); + ShowWindow(p, SW_SHOWNA); + } XDestroyWindow(fl_display, ip->xid); #elif defined(__APPLE_QD__) if ( !parent() ) // don't destroy shared windows! |
