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
ff721806
Commit
ff721806
authored
Dec 12, 2006
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Dec 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Update cached cursor position after calling hook.
parent
b1368179
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
mouse.c
dlls/winex11.drv/mouse.c
+7
-7
No files found.
dlls/winex11.drv/mouse.c
View file @
ff721806
...
...
@@ -71,6 +71,8 @@ static const UINT button_up_flags[NB_BUTTONS] =
POINT
cursor_pos
;
BOOL
X11DRV_SetCursorPos
(
INT
x
,
INT
y
);
/***********************************************************************
* get_coords
*
...
...
@@ -231,9 +233,6 @@ void X11DRV_send_mouse_input( HWND hwnd, DWORD flags, DWORD x, DWORD y,
if
(
cursor_pos
.
x
==
x
&&
cursor_pos
.
y
==
y
)
flags
&=
~
MOUSEEVENTF_MOVE
;
wine_tsx11_unlock
();
}
wine_tsx11_lock
();
cursor_pos
=
pt
;
wine_tsx11_unlock
();
}
else
if
(
flags
&
MOUSEEVENTF_MOVE
)
{
...
...
@@ -262,7 +261,6 @@ void X11DRV_send_mouse_input( HWND hwnd, DWORD flags, DWORD x, DWORD y,
else
if
(
pt
.
x
>=
screen_width
)
pt
.
x
=
screen_width
-
1
;
if
(
pt
.
y
<
0
)
pt
.
y
=
0
;
else
if
(
pt
.
y
>=
screen_height
)
pt
.
y
=
screen_height
-
1
;
cursor_pos
=
pt
;
wine_tsx11_unlock
();
}
else
...
...
@@ -279,10 +277,12 @@ void X11DRV_send_mouse_input( HWND hwnd, DWORD flags, DWORD x, DWORD y,
if
((
injected_flags
&
LLMHF_INJECTED
)
&&
((
flags
&
MOUSEEVENTF_ABSOLUTE
)
||
x
||
y
))
/* we have to actually move the cursor */
{
TRACE
(
"warping to (%d,%d)
\n
"
,
pt
.
x
,
pt
.
y
);
X11DRV_SetCursorPos
(
pt
.
x
,
pt
.
y
);
}
else
{
wine_tsx11_lock
();
XWarpPointer
(
thread_display
(),
root_window
,
root_window
,
0
,
0
,
0
,
0
,
pt
.
x
-
virtual_screen_rect
.
left
,
pt
.
y
-
virtual_screen_rect
.
top
);
cursor_pos
=
pt
;
wine_tsx11_unlock
();
}
}
...
...
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