Commit 3bce247b authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

win32u: Add a separate function to process WM_WINE_CLIPCURSOR.

parent 1cea2be9
......@@ -2497,6 +2497,18 @@ BOOL get_clip_cursor( RECT *rect )
return ret;
}
BOOL process_wine_clipcursor( BOOL empty )
{
RECT rect;
TRACE( "empty %u\n", empty );
if (empty) return user_driver->pClipCursor( NULL );
get_clip_cursor( &rect );
return user_driver->pClipCursor( &rect );
}
/***********************************************************************
* NtUserClipCursor (win32u.@)
*/
......
......@@ -1272,13 +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:
if (wparam)
{
RECT rect;
get_clip_cursor( &rect );
return user_driver->pClipCursor( &rect );
}
return user_driver->pClipCursor( NULL );
return process_wine_clipcursor( !wparam );
case WM_WINE_UPDATEWINDOWSTATE:
update_window_state( hwnd );
return 0;
......
......@@ -101,6 +101,7 @@ extern BOOL set_foreground_window( HWND hwnd, BOOL mouse ) DECLSPEC_HIDDEN;
extern void toggle_caret( HWND hwnd ) DECLSPEC_HIDDEN;
extern void update_mouse_tracking_info( HWND hwnd ) DECLSPEC_HIDDEN;
extern BOOL get_clip_cursor( RECT *rect ) DECLSPEC_HIDDEN;
extern BOOL process_wine_clipcursor( BOOL empty ) DECLSPEC_HIDDEN;
/* menu.c */
extern HMENU create_menu( BOOL is_popup ) DECLSPEC_HIDDEN;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment