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

win32u: Update the display cache when virtual desktop mode changes.

We update the cache in NtUserCreateDesktopEx, as it may change existing thread desktop flags, but we need to do it as well when a new desktop is created while still detached, then attached to a thread through NtUserSetThreadDesktop. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55146
parent 05b21755
......@@ -248,7 +248,7 @@ HDESK WINAPI NtUserGetThreadDesktop( DWORD thread )
*/
BOOL WINAPI NtUserSetThreadDesktop( HDESK handle )
{
BOOL ret;
BOOL ret, was_virtual_desktop = is_virtual_desktop();
SERVER_START_REQ( set_thread_desktop )
{
......@@ -264,6 +264,7 @@ BOOL WINAPI NtUserSetThreadDesktop( HDESK handle )
thread_info->client_info.top_window = 0;
thread_info->client_info.msg_window = 0;
if (key_state_info) key_state_info->time = 0;
if (was_virtual_desktop != is_virtual_desktop()) update_display_cache( TRUE );
}
return ret;
}
......
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