winex11: Handle a NULL cursor clipping rect the same as a fullscreen rect.

We want to avoid ungrabbing the clipping window if "fullscreen clipping" is
enabled.
This commit is contained in:
Henri Verbeet 2012-09-28 01:06:53 +02:00 committed by Alexandre Julliard
parent 47c54c4ae7
commit 73d68c5a31
1 changed files with 1 additions and 5 deletions

View File

@ -1265,11 +1265,7 @@ BOOL CDECL X11DRV_GetCursorPos(LPPOINT pos)
*/
BOOL CDECL X11DRV_ClipCursor( LPCRECT clip )
{
if (!clip)
{
ungrab_clipping_window();
return TRUE;
}
if (!clip) clip = &virtual_screen_rect;
if (GetWindowThreadProcessId( GetDesktopWindow(), NULL ) == GetCurrentThreadId())
return TRUE; /* don't clip in the desktop process */