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
68208425
Commit
68208425
authored
Aug 15, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Aug 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Set correct cursor when setting cursor from another thread.
parent
39889f19
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
mouse.c
dlls/winex11.drv/mouse.c
+2
-1
window.c
dlls/winex11.drv/window.c
+14
-3
No files found.
dlls/winex11.drv/mouse.c
View file @
68208425
...
...
@@ -1503,7 +1503,8 @@ void X11DRV_SetCursor( HCURSOR handle )
NtGetTickCount
()
-
last_cursor_change
>
100
)
{
last_cursor_change
=
NtGetTickCount
();
if
(
cursor_window
)
send_notify_message
(
cursor_window
,
WM_X11DRV_SET_CURSOR
,
0
,
(
LPARAM
)
handle
);
if
(
cursor_window
)
send_notify_message
(
cursor_window
,
WM_X11DRV_SET_CURSOR
,
GetCurrentThreadId
(),
(
LPARAM
)
handle
);
}
}
...
...
dlls/winex11.drv/window.c
View file @
68208425
...
...
@@ -2996,15 +2996,26 @@ LRESULT X11DRV_WindowMessage( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp )
X11DRV_resize_desktop
(
(
BOOL
)
lp
);
return
0
;
case
WM_X11DRV_SET_CURSOR
:
{
Window
win
=
0
;
if
((
data
=
get_win_data
(
hwnd
)))
{
Window
win
=
data
->
whole_window
;
win
=
data
->
whole_window
;
release_win_data
(
data
);
if
(
win
)
set_window_cursor
(
win
,
(
HCURSOR
)
lp
);
}
else
if
(
hwnd
==
x11drv_thread_data
()
->
clip_hwnd
)
set_window_cursor
(
x11drv_thread_data
()
->
clip_window
,
(
HCURSOR
)
lp
);
win
=
x11drv_thread_data
()
->
clip_window
;
if
(
win
)
{
if
(
wp
==
GetCurrentThreadId
())
set_window_cursor
(
win
,
(
HCURSOR
)
lp
);
else
sync_window_cursor
(
win
);
}
return
0
;
}
case
WM_X11DRV_CLIP_CURSOR_NOTIFY
:
return
clip_cursor_notify
(
hwnd
,
(
HWND
)
wp
,
(
HWND
)
lp
);
case
WM_X11DRV_CLIP_CURSOR_REQUEST
:
...
...
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