From 7c538cddebf58c91bee071e028e9f67d1355c9da Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 27 Mar 2015 17:12:26 +0900 Subject: [PATCH] server: Post a notification to the desktop window when a top-level window is destroyed. --- server/window.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/window.c b/server/window.c index 9efdd69d38a..d089149b5a3 100644 --- a/server/window.c +++ b/server/window.c @@ -1865,6 +1865,11 @@ void destroy_window( struct window *win ) if (desktop->top_window == win) desktop->top_window = NULL; else desktop->msg_window = NULL; } + else if (is_desktop_window( win->parent )) + { + post_message( win->parent->handle, WM_PARENTNOTIFY, WM_DESTROY, win->handle ); + } + detach_window_thread( win ); if (win->win_region) free_region( win->win_region ); if (win->update_region) free_region( win->update_region );