Commit 28c52d4a authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

server: Remove desktop from their winstation list before looking for another input desktop.

parent 818d9a12
......@@ -349,6 +349,8 @@ static void desktop_destroy( struct object *obj )
struct desktop *desktop = (struct desktop *)obj;
struct winstation *winstation = desktop->winstation;
list_remove( &desktop->entry );
if (desktop == winstation->input_desktop)
{
struct desktop *other, *found = NULL;
......@@ -363,7 +365,6 @@ static void desktop_destroy( struct object *obj )
if (desktop->msg_window) free_window_handle( desktop->msg_window );
if (desktop->global_hooks) release_object( desktop->global_hooks );
if (desktop->close_timeout) remove_timeout_user( desktop->close_timeout );
list_remove( &desktop->entry );
release_object( desktop->winstation );
}
......
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