Skip to content

Commit

Permalink
winex11: ignore clip_reset when trying to clip the mouse after the de…
Browse files Browse the repository at this point in the history
…sktop has been resized

This fixes the mouse clipping when the desktop is resized multiple times in a row.
  • Loading branch information
AlexeyProkhin authored and aeikum committed Feb 21, 2019
1 parent 8937cba commit 200ab34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dlls/winex11.drv/mouse.c
Expand Up @@ -551,8 +551,10 @@ BOOL clip_fullscreen_window( HWND hwnd, BOOL reset )
release_win_data( data );
if (!fullscreen) return FALSE;
if (!(thread_data = x11drv_thread_data())) return FALSE;
if (GetTickCount() - thread_data->clip_reset < 1000) return FALSE;
if (!reset && clipping_cursor && thread_data->clip_hwnd) return FALSE; /* already clipping */
if (!reset) {
if (GetTickCount() - thread_data->clip_reset < 1000) return FALSE;
if (clipping_cursor && thread_data->clip_hwnd) return FALSE; /* already clipping */
}
rect = get_primary_monitor_rect();
if (!grab_fullscreen)
{
Expand Down

0 comments on commit 200ab34

Please sign in to comment.