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:
parent
47c54c4ae7
commit
73d68c5a31
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue