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
26c6386d
Commit
26c6386d
authored
Jan 25, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
May 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Move set_cursor desktop local variable to wider scope.
parent
61dbfea4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
queue.c
server/queue.c
+11
-15
No files found.
server/queue.c
View file @
26c6386d
...
...
@@ -3264,14 +3264,16 @@ DECL_HANDLER(set_cursor)
{
struct
msg_queue
*
queue
=
get_current_queue
();
struct
thread_input
*
input
;
struct
desktop
*
desktop
;
if
(
!
queue
)
return
;
input
=
queue
->
input
;
desktop
=
input
->
desktop
;
reply
->
prev_handle
=
input
->
cursor
;
reply
->
prev_count
=
input
->
cursor_count
;
reply
->
prev_x
=
input
->
desktop
->
cursor
.
x
;
reply
->
prev_y
=
input
->
desktop
->
cursor
.
y
;
reply
->
prev_x
=
desktop
->
cursor
.
x
;
reply
->
prev_y
=
desktop
->
cursor
.
y
;
if
(
req
->
flags
&
SET_CURSOR_HANDLE
)
{
...
...
@@ -3287,20 +3289,14 @@ DECL_HANDLER(set_cursor)
queue
->
cursor_count
+=
req
->
show_count
;
input
->
cursor_count
+=
req
->
show_count
;
}
if
(
req
->
flags
&
SET_CURSOR_POS
)
{
set_cursor_pos
(
input
->
desktop
,
req
->
x
,
req
->
y
);
}
if
(
req
->
flags
&
(
SET_CURSOR_CLIP
|
SET_CURSOR_NOCLIP
))
{
struct
desktop
*
desktop
=
input
->
desktop
;
set_clip_rectangle
(
desktop
,
(
req
->
flags
&
SET_CURSOR_NOCLIP
)
?
NULL
:
&
req
->
clip
,
0
);
}
if
(
req
->
flags
&
SET_CURSOR_POS
)
set_cursor_pos
(
desktop
,
req
->
x
,
req
->
y
);
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
);
reply
->
new_x
=
input
->
desktop
->
cursor
.
x
;
reply
->
new_y
=
input
->
desktop
->
cursor
.
y
;
reply
->
new_clip
=
input
->
desktop
->
cursor
.
clip
;
reply
->
last_change
=
input
->
desktop
->
cursor
.
last_change
;
reply
->
new_x
=
desktop
->
cursor
.
x
;
reply
->
new_y
=
desktop
->
cursor
.
y
;
reply
->
new_clip
=
desktop
->
cursor
.
clip
;
reply
->
last_change
=
desktop
->
cursor
.
last_change
;
}
/* Get the history of the 64 last cursor positions */
...
...
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