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
55e1fec7
Commit
55e1fec7
authored
Mar 07, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Set the last mouse event timestamp before calling the low-level hook.
parent
5055ec63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
input.c
dlls/user32/input.c
+5
-4
No files found.
dlls/user32/input.c
View file @
55e1fec7
...
@@ -124,9 +124,11 @@ BOOL set_capture_window( HWND hwnd, UINT gui_flags, HWND *prev_ret )
...
@@ -124,9 +124,11 @@ BOOL set_capture_window( HWND hwnd, UINT gui_flags, HWND *prev_ret )
*/
*/
BOOL
CDECL
__wine_send_input
(
HWND
hwnd
,
const
INPUT
*
input
)
BOOL
CDECL
__wine_send_input
(
HWND
hwnd
,
const
INPUT
*
input
)
{
{
NTSTATUS
status
=
send_hardware_message
(
hwnd
,
input
,
0
);
NTSTATUS
status
;
if
(
input
->
type
==
INPUT_MOUSE
)
last_mouse_event
=
GetTickCount
();
status
=
send_hardware_message
(
hwnd
,
input
,
0
);
if
(
status
)
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
if
(
status
)
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
else
if
(
input
->
type
==
INPUT_MOUSE
)
last_mouse_event
=
GetTickCount
();
return
!
status
;
return
!
status
;
}
}
...
@@ -181,11 +183,10 @@ UINT WINAPI SendInput( UINT count, LPINPUT inputs, int size )
...
@@ -181,11 +183,10 @@ UINT WINAPI SendInput( UINT count, LPINPUT inputs, int size )
{
{
/* we need to update the coordinates to what the server expects */
/* we need to update the coordinates to what the server expects */
INPUT
input
=
inputs
[
i
];
INPUT
input
=
inputs
[
i
];
last_mouse_event
=
GetTickCount
();
update_mouse_coords
(
&
input
);
update_mouse_coords
(
&
input
);
if
(
!
(
status
=
send_hardware_message
(
0
,
&
input
,
SEND_HWMSG_INJECTED
)))
if
(
!
(
status
=
send_hardware_message
(
0
,
&
input
,
SEND_HWMSG_INJECTED
)))
{
{
last_mouse_event
=
GetTickCount
();
if
((
input
.
u
.
mi
.
dwFlags
&
MOUSEEVENTF_MOVE
)
&&
if
((
input
.
u
.
mi
.
dwFlags
&
MOUSEEVENTF_MOVE
)
&&
((
input
.
u
.
mi
.
dwFlags
&
MOUSEEVENTF_ABSOLUTE
)
||
input
.
u
.
mi
.
dx
||
input
.
u
.
mi
.
dy
))
((
input
.
u
.
mi
.
dwFlags
&
MOUSEEVENTF_ABSOLUTE
)
||
input
.
u
.
mi
.
dx
||
input
.
u
.
mi
.
dy
))
{
{
...
...
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