Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3bce247b
Commit
3bce247b
authored
May 26, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
May 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Add a separate function to process WM_WINE_CLIPCURSOR.
parent
1cea2be9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
input.c
dlls/win32u/input.c
+12
-0
message.c
dlls/win32u/message.c
+1
-7
win32u_private.h
dlls/win32u/win32u_private.h
+1
-0
No files found.
dlls/win32u/input.c
View file @
3bce247b
...
...
@@ -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.@)
*/
...
...
dlls/win32u/message.c
View file @
3bce247b
...
...
@@ -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
;
...
...
dlls/win32u/win32u_private.h
View file @
3bce247b
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment