Commit 57fc5e7f authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Fix check for desktop process in non-desktop mode.

parent acfdbd2b
......@@ -1207,7 +1207,8 @@ BOOL CDECL X11DRV_ClipCursor( LPCRECT clip )
return TRUE;
}
if (X11DRV_get_win_data( GetDesktopWindow() )) return TRUE; /* don't clip in the desktop process */
if (GetWindowThreadProcessId( GetDesktopWindow(), NULL ) == GetCurrentThreadId())
return TRUE; /* don't clip in the desktop process */
/* we are clipping if the clip rectangle is smaller than the screen */
if (grab_pointer && (clip->left > virtual_screen_rect.left ||
......
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