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

winex11.drv: Send WM_X11DRV_CLIP_CURSOR_REQUEST message from the deskop.

Using send_notify_message directly, which calls clip_fullscreen_window synchronously if the target thread is the same.
parent bc09f081
......@@ -482,5 +482,8 @@ void X11DRV_resize_desktop(void)
send_message_timeout( HWND_BROADCAST, WM_X11DRV_DESKTOP_RESIZED, old_virtual_rect.left,
old_virtual_rect.top, SMTO_ABORTIFHUNG, 2000, FALSE );
/* forward clip_fullscreen_window request to the foreground window */
send_notify_message( NtUserGetForegroundWindow(), WM_X11DRV_CLIP_CURSOR_REQUEST, TRUE, TRUE );
old_virtual_rect = virtual_rect;
}
......@@ -560,20 +560,9 @@ void X11DRV_DisplayDevices_RegisterEventHandlers(void)
void X11DRV_DisplayDevices_Update(void)
{
DWORD tid, pid;
HWND foreground;
X11DRV_DisplayDevices_Init(TRUE);
X11DRV_resize_desktop();
/* forward clip_fullscreen_window request to the foreground window */
if ((foreground = NtUserGetForegroundWindow()) &&
(tid = NtUserGetWindowThread( foreground, &pid )) && pid == GetCurrentProcessId())
{
if (tid == GetCurrentThreadId()) clip_fullscreen_window( foreground, TRUE );
else send_notify_message( foreground, WM_X11DRV_CLIP_CURSOR_REQUEST, TRUE, TRUE );
}
}
static BOOL force_display_devices_refresh;
......
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