Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
79c2e55b
Commit
79c2e55b
authored
Apr 20, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Only call the driver when the cursor position has really changed.
parent
abe5440e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
input.c
dlls/user32/input.c
+6
-3
No files found.
dlls/user32/input.c
View file @
79c2e55b
...
...
@@ -301,6 +301,7 @@ BOOL WINAPI GetCursorInfo( PCURSORINFO pci )
BOOL
WINAPI
DECLSPEC_HOTPATCH
SetCursorPos
(
INT
x
,
INT
y
)
{
BOOL
ret
;
INT
prev_x
,
prev_y
,
new_x
,
new_y
;
SERVER_START_REQ
(
set_cursor
)
{
...
...
@@ -309,12 +310,14 @@ BOOL WINAPI DECLSPEC_HOTPATCH SetCursorPos( INT x, INT y )
req
->
y
=
y
;
if
((
ret
=
!
wine_server_call
(
req
)))
{
x
=
reply
->
new_x
;
y
=
reply
->
new_y
;
prev_x
=
reply
->
prev_x
;
prev_y
=
reply
->
prev_y
;
new_x
=
reply
->
new_x
;
new_y
=
reply
->
new_y
;
}
}
SERVER_END_REQ
;
if
(
ret
)
USER_Driver
->
pSetCursorPos
(
x
,
y
);
if
(
ret
&&
(
prev_x
!=
new_x
||
prev_y
!=
new_y
))
USER_Driver
->
pSetCursorPos
(
new_x
,
new_
y
);
return
ret
;
}
...
...
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