Commit 89a7c05a authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

win32u: Add a clipping_reset member to user_thread_info.

parent f47ed292
......@@ -2499,11 +2499,16 @@ BOOL get_clip_cursor( RECT *rect )
BOOL process_wine_clipcursor( BOOL empty, BOOL reset )
{
struct user_thread_info *thread_info = get_user_thread_info();
RECT rect;
TRACE( "empty %u, reset %u\n", empty, reset );
if (reset) return user_driver->pClipCursor( NULL, TRUE );
if (reset)
{
thread_info->clipping_reset = NtGetTickCount();
return user_driver->pClipCursor( NULL, TRUE );
}
if (!grab_pointer) return TRUE;
if (empty) return user_driver->pClipCursor( NULL, reset );
......
......@@ -130,6 +130,7 @@ struct user_thread_info
UINT kbd_layout_id; /* Current keyboard layout ID */
struct rawinput_thread_data *rawinput; /* RawInput thread local data / buffer */
UINT spy_indent; /* Current spy indent */
DWORD clipping_reset; /* time when clipping was last reset */
};
C_ASSERT( sizeof(struct user_thread_info) <= sizeof(((TEB *)0)->Win32ClientInfo) );
......
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