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
e52e57d1
Commit
e52e57d1
authored
May 13, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Try a little harder to clip the cursor to avoid some race conditions.
parent
8e9b4e0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mouse.c
dlls/winex11.drv/mouse.c
+3
-3
No files found.
dlls/winex11.drv/mouse.c
View file @
e52e57d1
...
...
@@ -396,14 +396,14 @@ static BOOL grab_clipping_window( const RECT *clip, BOOL only_with_xinput )
return
TRUE
;
}
TRACE
(
"clipping to %s
\n
"
,
wine_dbgstr_rect
(
clip
)
);
TRACE
(
"clipping to %s
win %lx
\n
"
,
wine_dbgstr_rect
(
clip
),
clip_window
);
wine_tsx11_lock
();
if
(
msg_hwnd
)
XUnmapWindow
(
data
->
display
,
clip_window
);
XMoveResizeWindow
(
data
->
display
,
clip_window
,
clip
->
left
-
virtual_screen_rect
.
left
,
clip
->
top
-
virtual_screen_rect
.
top
,
clip
->
right
-
clip
->
left
,
clip
->
bottom
-
clip
->
top
);
if
(
msg_hwnd
)
XMapWindow
(
data
->
display
,
clip_window
);
XMapWindow
(
data
->
display
,
clip_window
);
if
(
!
XGrabPointer
(
data
->
display
,
clip_window
,
False
,
PointerMotionMask
|
ButtonPressMask
|
ButtonReleaseMask
,
GrabModeAsync
,
GrabModeAsync
,
clip_window
,
None
,
CurrentTime
))
...
...
@@ -516,7 +516,7 @@ BOOL clip_fullscreen_window( HWND hwnd, BOOL reset )
if
(
!
is_window_rect_fullscreen
(
&
data
->
whole_rect
))
return
FALSE
;
if
(
!
(
thread_data
=
x11drv_thread_data
()))
return
FALSE
;
if
(
GetTickCount
()
-
thread_data
->
clip_reset
<
1000
)
return
FALSE
;
if
(
!
reset
&&
thread_data
->
clip_hwnd
)
return
FALSE
;
/* already clipping */
if
(
!
reset
&&
clipping_cursor
&&
thread_data
->
clip_hwnd
)
return
FALSE
;
/* already clipping */
SetRect
(
&
rect
,
0
,
0
,
screen_width
,
screen_height
);
if
(
!
grab_fullscreen
)
{
...
...
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