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 )
|
BOOL CDECL X11DRV_ClipCursor( LPCRECT clip )
|
||||||
{
|
{
|
||||||
if (!clip)
|
if (!clip) clip = &virtual_screen_rect;
|
||||||
{
|
|
||||||
ungrab_clipping_window();
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (GetWindowThreadProcessId( GetDesktopWindow(), NULL ) == GetCurrentThreadId())
|
if (GetWindowThreadProcessId( GetDesktopWindow(), NULL ) == GetCurrentThreadId())
|
||||||
return TRUE; /* don't clip in the desktop process */
|
return TRUE; /* don't clip in the desktop process */
|
||||||
|
|
Loading…
Reference in New Issue