Commit 7c538cdd authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 3b518598
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment