server: Post a notification to the desktop window when a top-level window is destroyed.

This commit is contained in:
Alexandre Julliard 2015-03-27 17:12:26 +09:00
parent 3b51859871
commit 7c538cddeb
1 changed files with 5 additions and 0 deletions

View File

@ -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 );