diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c index be822bf54d5..818bdd591ba 100644 --- a/dlls/winex11.drv/mouse.c +++ b/dlls/winex11.drv/mouse.c @@ -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 */