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
55c4a108
Commit
55c4a108
authored
Nov 11, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Nov 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Only send WM_WINE_CLIPCURSOR for forced clip resets.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5eb30353
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
queue.c
server/queue.c
+4
-4
No files found.
server/queue.c
View file @
55c4a108
...
...
@@ -374,7 +374,7 @@ static void get_message_defaults( struct msg_queue *queue, int *x, int *y, unsig
}
/* set the cursor clip rectangle */
static
void
set_clip_rectangle
(
struct
desktop
*
desktop
,
const
rectangle_t
*
rect
)
static
void
set_clip_rectangle
(
struct
desktop
*
desktop
,
const
rectangle_t
*
rect
,
int
send_clip_msg
)
{
rectangle_t
top_rect
;
int
x
,
y
;
...
...
@@ -392,7 +392,7 @@ static void set_clip_rectangle( struct desktop *desktop, const rectangle_t *rect
}
else
desktop
->
cursor
.
clip
=
top_rect
;
if
(
desktop
->
cursor
.
clip_msg
)
if
(
desktop
->
cursor
.
clip_msg
&&
send_clip_msg
)
post_desktop_message
(
desktop
,
desktop
->
cursor
.
clip_msg
,
rect
!=
NULL
,
0
);
/* warp the mouse to be inside the clip rect */
...
...
@@ -405,7 +405,7 @@ static void set_clip_rectangle( struct desktop *desktop, const rectangle_t *rect
static
void
set_foreground_input
(
struct
desktop
*
desktop
,
struct
thread_input
*
input
)
{
if
(
desktop
->
foreground_input
==
input
)
return
;
set_clip_rectangle
(
desktop
,
NULL
);
set_clip_rectangle
(
desktop
,
NULL
,
1
);
desktop
->
foreground_input
=
input
;
}
...
...
@@ -3091,7 +3091,7 @@ DECL_HANDLER(set_cursor)
if
(
req
->
clip_msg
&&
get_top_window_owner
(
desktop
)
==
current
->
process
)
desktop
->
cursor
.
clip_msg
=
req
->
clip_msg
;
set_clip_rectangle
(
desktop
,
(
req
->
flags
&
SET_CURSOR_NOCLIP
)
?
NULL
:
&
req
->
clip
);
set_clip_rectangle
(
desktop
,
(
req
->
flags
&
SET_CURSOR_NOCLIP
)
?
NULL
:
&
req
->
clip
,
0
);
}
reply
->
new_x
=
input
->
desktop
->
cursor
.
x
;
...
...
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