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
9dc80b13
Commit
9dc80b13
authored
Dec 21, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Dec 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Introduce a new get_desktop_cursor_thread_input helper.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55961
parent
fa873804
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
queue.c
server/queue.c
+19
-11
No files found.
server/queue.c
View file @
9dc80b13
...
...
@@ -429,26 +429,34 @@ static void queue_cursor_message( struct desktop *desktop, user_handle_t win, un
queue_hardware_message
(
desktop
,
msg
,
1
);
}
static
struct
thread_input
*
get_desktop_cursor_thread_input
(
struct
desktop
*
desktop
)
{
struct
thread_input
*
input
=
NULL
;
struct
thread
*
thread
;
if
((
thread
=
get_window_thread
(
desktop
->
cursor
.
win
)))
{
if
(
thread
->
queue
)
input
=
thread
->
queue
->
input
;
release_object
(
thread
);
}
return
input
;
}
static
int
update_desktop_cursor_window
(
struct
desktop
*
desktop
,
user_handle_t
win
)
{
int
updated
=
win
!=
desktop
->
cursor
.
win
;
user_handle_t
handle
=
desktop
->
cursor
.
handle
;
struct
thread_input
*
input
;
desktop
->
cursor
.
win
=
win
;
if
(
updated
)
{
struct
thread
*
thread
;
if
((
thread
=
get_window_thread
(
win
)))
{
struct
thread_input
*
input
=
thread
->
queue
->
input
;
if
(
input
)
handle
=
input
->
cursor_count
<
0
?
0
:
input
->
cursor
;
release_object
(
thread
);
}
if
(
updated
&&
(
input
=
get_desktop_cursor_thread_input
(
desktop
)))
{
user_handle_t
handle
=
input
->
cursor_count
<
0
?
0
:
input
->
cursor
;
/* when clipping send the message to the foreground window as well, as some driver have an artificial overlay window */
if
(
is_cursor_clipped
(
desktop
))
queue_cursor_message
(
desktop
,
0
,
WM_WINE_SETCURSOR
,
win
,
handle
);
queue_cursor_message
(
desktop
,
win
,
WM_WINE_SETCURSOR
,
win
,
handle
);
}
return
updated
;
}
...
...
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