Skip to content

Commit

Permalink
winex11.drv: Enable fullscreen clipping even if not already clipping.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyProkhin authored and ivyl committed Mar 30, 2023
1 parent e56ad03 commit dba0a0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dlls/winex11.drv/mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1601,12 +1601,12 @@ BOOL X11DRV_ClipCursor( LPCRECT clip )
{
if (grab_clipping_window( clip )) return TRUE;
}
else /* if currently clipping, check if we should switch to fullscreen clipping */
else /* check if we should switch to fullscreen clipping */
{
struct x11drv_thread_data *data = x11drv_thread_data();
if (data && data->clip_hwnd)
if (data)
{
if (EqualRect( clip, &clip_rect ) || clip_fullscreen_window( foreground, TRUE ))
if ((data->clip_hwnd && EqualRect( clip, &clip_rect ) && !EqualRect(&clip_rect, &virtual_rect)) || clip_fullscreen_window( foreground, TRUE ))
return TRUE;
}
}
Expand Down

0 comments on commit dba0a0d

Please sign in to comment.