server: Don't attach thread input to the desktop.
Now that the desktop can be owned by a thread we need to explicitly check for it in the thread attach check.
This commit is contained in:
parent
31b0a4edf6
commit
0fab85a5b6
@ -426,7 +426,7 @@ static struct window *create_window( struct window *parent, struct window *owner
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* if parent belongs to a different thread, attach the two threads */
|
/* if parent belongs to a different thread, attach the two threads */
|
||||||
if (parent && parent->thread && parent->thread != current)
|
if (parent && parent->thread && parent->thread != current && !is_desktop_window(parent))
|
||||||
{
|
{
|
||||||
if (!attach_thread_input( current, parent->thread )) goto failed;
|
if (!attach_thread_input( current, parent->thread )) goto failed;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user