summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-02-14 13:44:24 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-02-14 13:44:24 +0000
commit452c17f8fbfe51eaba2eddeda2197db7f0a95ce2 (patch)
tree7f886dfdc42e6fc3d128f9ea4ef0e33b362d88e8 /src/Fl.cxx
parentab8f3f793a6f6a5255cd22b212915a1909efe9a7 (diff)
Fl::wait() could block on WIN32 if the window was deleted via
Fl::delete_widget() (STR #679) src/Fl.cxx: - Post an application message when a window is hidden on WIN32. src/Fl_win32.cxx: - Change async select message to WM_APP + 1, and document our use of WM_APP. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4043 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl.cxx')
-rw-r--r--src/Fl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index dd0ebea81..d90600402 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -829,6 +829,8 @@ void Fl_Window::hide() {
handle(FL_HIDE);
#ifdef WIN32
+ // Send a message to myself so that I'll get out of the event loop...
+ PostMessage(ip->xid, WM_APP, 0, 0);
if (ip->private_dc) ReleaseDC(ip->xid,ip->private_dc);
if (ip->xid == fl_window && fl_gc) {
ReleaseDC(fl_window, fl_gc);