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

winex11: Let win32u decide when to force update the display cache.

parent 24e6e773
...@@ -2000,10 +2000,7 @@ void X11DRV_SetDesktopWindow( HWND hwnd ) ...@@ -2000,10 +2000,7 @@ void X11DRV_SetDesktopWindow( HWND hwnd )
if (!width && !height) /* not initialized yet */ if (!width && !height) /* not initialized yet */
{ {
RECT rect; RECT rect = NtUserGetVirtualScreenRect();
X11DRV_DisplayDevices_Init( TRUE );
rect = NtUserGetVirtualScreenRect();
SERVER_START_REQ( set_window_pos ) SERVER_START_REQ( set_window_pos )
{ {
...@@ -2036,11 +2033,7 @@ void X11DRV_SetDesktopWindow( HWND hwnd ) ...@@ -2036,11 +2033,7 @@ void X11DRV_SetDesktopWindow( HWND hwnd )
else else
{ {
Window win = (Window)NtUserGetProp( hwnd, whole_window_prop ); Window win = (Window)NtUserGetProp( hwnd, whole_window_prop );
if (win && win != root_window) if (win && win != root_window) X11DRV_init_desktop( win, width, height );
{
X11DRV_init_desktop( win, width, height );
X11DRV_DisplayDevices_Init( TRUE );
}
} }
} }
......
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