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
ef292465
Commit
ef292465
authored
Nov 09, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Use the motion event time to decide when to update the cursor.
parent
098b11e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mouse.c
dlls/winex11.drv/mouse.c
+4
-4
No files found.
dlls/winex11.drv/mouse.c
View file @
ef292465
...
...
@@ -548,10 +548,10 @@ static void send_mouse_input( HWND hwnd, Window window, unsigned int state, INPU
if
(
!
clip_hwnd
)
return
;
if
(
thread_data
->
clip_window
!=
window
)
return
;
if
(
InterlockedExchangePointer
(
(
void
**
)
&
cursor_window
,
clip_hwnd
)
!=
clip_hwnd
||
GetTickCount
()
-
last_cursor_change
>
100
)
input
->
u
.
mi
.
time
-
last_cursor_change
>
100
)
{
sync_window_cursor
(
window
);
last_cursor_change
=
GetTickCount
()
;
last_cursor_change
=
input
->
u
.
mi
.
time
;
}
input
->
u
.
mi
.
dx
+=
clip_rect
.
left
;
input
->
u
.
mi
.
dy
+=
clip_rect
.
top
;
...
...
@@ -578,10 +578,10 @@ static void send_mouse_input( HWND hwnd, Window window, unsigned int state, INPU
MapWindowPoints
(
hwnd
,
0
,
&
pt
,
1
);
if
(
InterlockedExchangePointer
(
(
void
**
)
&
cursor_window
,
hwnd
)
!=
hwnd
||
GetTickCount
()
-
last_cursor_change
>
100
)
input
->
u
.
mi
.
time
-
last_cursor_change
>
100
)
{
sync_window_cursor
(
data
->
whole_window
);
last_cursor_change
=
GetTickCount
()
;
last_cursor_change
=
input
->
u
.
mi
.
time
;
}
if
(
hwnd
!=
GetDesktopWindow
())
...
...
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