mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
server: Remove desktop from their winstation list before looking for another input desktop.
This commit is contained in:
parent
818d9a1210
commit
28c52d4ac3
1 changed files with 2 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue