server: Check winstation visibility in server to avoid race-conditions.
commit6bfa3896fcbfca7a2ab51bcac463c0750d6e9272
authorSebastian Lackner <sebastian@fds-team.de>
Fri, 4 Dec 2015 00:17:50 +0000 (4 01:17 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 4 Dec 2015 04:18:00 +0000 (4 13:18 +0900)
tree7ab1c22af7077293df6da63f58c864f796505056
parent71bbd8da87109161448c7c6d7f6fcfa721b6c746
server: Check winstation visibility in server to avoid race-conditions.

GetDesktopWindow incorrectly assumes, that the process window station is
still the same one, which was used earlier when changing the desktop.
By moving the visibility check to wineserver we can also avoid
wineserver roundtrip for invisible desktops.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/user32/win.c
server/window.c