1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 20:06:18 +00:00

win32u: Use WM_WINE_CLIPCURSOR / TRUE for empty clipping rect.

This commit is contained in:
Rémi Bernon 2023-05-31 11:23:40 +02:00 committed by Alexandre Julliard
parent 3bce247bd2
commit 900ba82654
2 changed files with 2 additions and 2 deletions

View File

@ -1272,7 +1272,7 @@ static LRESULT handle_internal_message( HWND hwnd, UINT msg, WPARAM wparam, LPAR
return call_current_hook( h_extra->handle, HC_ACTION, wparam, h_extra->lparam );
}
case WM_WINE_CLIPCURSOR:
return process_wine_clipcursor( !wparam );
return process_wine_clipcursor( wparam );
case WM_WINE_UPDATEWINDOWSTATE:
update_window_state( hwnd );
return 0;

View File

@ -468,7 +468,7 @@ static void set_clip_rectangle( struct desktop *desktop, const rectangle_t *rect
}
else desktop->cursor.clip = top_rect;
if (send_clip_msg) post_desktop_message( desktop, WM_WINE_CLIPCURSOR, rect != NULL, 0 );
if (send_clip_msg) post_desktop_message( desktop, WM_WINE_CLIPCURSOR, rect == NULL, 0 );
/* warp the mouse to be inside the clip rect */
x = max( min( desktop->cursor.x, desktop->cursor.clip.right - 1 ), desktop->cursor.clip.left );