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
8aa1a268
Commit
8aa1a268
authored
Apr 22, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Pass a NULL rectangle in the ClipCursor entry point when clipping is…
user32: Pass a NULL rectangle in the ClipCursor entry point when clipping is reset because of focus change.
parent
9f72d195
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
message.c
dlls/user32/message.c
+2
-0
queue.c
server/queue.c
+2
-2
No files found.
dlls/user32/message.c
View file @
8aa1a268
...
...
@@ -1870,11 +1870,13 @@ static LRESULT handle_internal_message( HWND hwnd, UINT msg, WPARAM wparam, LPAR
return
call_current_hook
(
h_extra
->
handle
,
HC_ACTION
,
wparam
,
h_extra
->
lparam
);
}
case
WM_WINE_CLIPCURSOR
:
if
(
wparam
)
{
RECT
rect
;
GetClipCursor
(
&
rect
);
return
USER_Driver
->
pClipCursor
(
&
rect
);
}
return
USER_Driver
->
pClipCursor
(
NULL
);
default:
if
(
msg
>=
WM_WINE_FIRST_DRIVER_MSG
&&
msg
<=
WM_WINE_LAST_DRIVER_MSG
)
return
USER_Driver
->
pWindowMessage
(
hwnd
,
msg
,
wparam
,
lparam
);
...
...
server/queue.c
View file @
8aa1a268
...
...
@@ -354,9 +354,9 @@ static void set_clip_rectangle( struct desktop *desktop, const rectangle_t *rect
get_top_window_rectangle
(
desktop
,
&
top_rect
);
if
(
!
rect
||
!
intersect_rect
(
&
new_rect
,
&
top_rect
,
rect
))
new_rect
=
top_rect
;
if
(
!
memcmp
(
&
desktop
->
cursor
.
clip
,
&
new_rect
,
sizeof
(
new_rect
)
))
return
;
desktop
->
cursor
.
clip
=
new_rect
;
if
(
desktop
->
cursor
.
clip_msg
)
post_desktop_message
(
desktop
,
desktop
->
cursor
.
clip_msg
,
0
,
0
);
if
(
desktop
->
cursor
.
clip_msg
)
post_desktop_message
(
desktop
,
desktop
->
cursor
.
clip_msg
,
rect
!=
NULL
,
0
);
/* warp the mouse to be inside the clip rect */
x
=
min
(
max
(
desktop
->
cursor
.
x
,
desktop
->
cursor
.
clip
.
left
),
desktop
->
cursor
.
clip
.
right
-
1
);
...
...
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