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
b04ef199
Commit
b04ef199
authored
Dec 22, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Keep track of the current desktop cursor handle.
parent
10f5ff7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
queue.c
server/queue.c
+11
-0
user.h
server/user.h
+1
-0
No files found.
server/queue.c
View file @
b04ef199
...
...
@@ -431,6 +431,11 @@ static int update_desktop_cursor_pos( struct desktop *desktop, user_handle_t win
return
updated
;
}
static
void
update_desktop_cursor_handle
(
struct
desktop
*
desktop
,
user_handle_t
handle
)
{
desktop
->
cursor
.
handle
=
handle
;
}
/* set the cursor position and queue the corresponding mouse message */
static
void
set_cursor_pos
(
struct
desktop
*
desktop
,
int
x
,
int
y
)
{
...
...
@@ -3356,6 +3361,12 @@ DECL_HANDLER(set_cursor)
if
(
req
->
flags
&
SET_CURSOR_CLIP
)
set_clip_rectangle
(
desktop
,
&
req
->
clip
,
0
);
if
(
req
->
flags
&
SET_CURSOR_NOCLIP
)
set_clip_rectangle
(
desktop
,
NULL
,
0
);
if
(
req
->
flags
&
(
SET_CURSOR_HANDLE
|
SET_CURSOR_COUNT
))
{
if
(
input
->
cursor_count
<
0
)
update_desktop_cursor_handle
(
desktop
,
0
);
else
update_desktop_cursor_handle
(
desktop
,
input
->
cursor
);
}
reply
->
new_x
=
desktop
->
cursor
.
x
;
reply
->
new_y
=
desktop
->
cursor
.
y
;
reply
->
new_clip
=
desktop
->
cursor
.
clip
;
...
...
server/user.h
View file @
b04ef199
...
...
@@ -59,6 +59,7 @@ struct global_cursor
rectangle_t
clip
;
/* cursor clip rectangle */
unsigned
int
last_change
;
/* time of last position change */
user_handle_t
win
;
/* window that contains the cursor */
user_handle_t
handle
;
/* last set cursor handle */
};
struct
desktop
...
...
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