Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
897fdfd4
Commit
897fdfd4
authored
Apr 26, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Refuse to clip cursor to a 1x1 window if we don't have XInput2 support.
parent
dede8eba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
mouse.c
dlls/winex11.drv/mouse.c
+15
-2
No files found.
dlls/winex11.drv/mouse.c
View file @
897fdfd4
...
@@ -410,7 +410,20 @@ static BOOL grab_clipping_window( const RECT *clip )
...
@@ -410,7 +410,20 @@ static BOOL grab_clipping_window( const RECT *clip )
if
(
!
clip_window
)
return
TRUE
;
if
(
!
clip_window
)
return
TRUE
;
/* create a clip message window unless we are already clipping */
/* create a clip message window unless we are already clipping */
if
(
!
data
->
clip_hwnd
&&
!
(
msg_hwnd
=
create_clipping_msg_window
()))
return
TRUE
;
if
(
!
data
->
clip_hwnd
)
{
if
(
!
(
msg_hwnd
=
create_clipping_msg_window
()))
return
TRUE
;
enable_xinput2
();
}
/* don't clip to 1x1 rectangle if we don't have XInput */
if
(
data
->
xi2_state
!=
xi_enabled
&&
clip
->
right
-
clip
->
left
==
1
&&
clip
->
bottom
-
clip
->
top
==
1
)
{
WARN
(
"XInput2 not supported, refusing to clip to %s
\n
"
,
wine_dbgstr_rect
(
clip
)
);
if
(
msg_hwnd
)
DestroyWindow
(
msg_hwnd
);
ClipCursor
(
NULL
);
return
TRUE
;
}
TRACE
(
"clipping to %s
\n
"
,
wine_dbgstr_rect
(
clip
)
);
TRACE
(
"clipping to %s
\n
"
,
wine_dbgstr_rect
(
clip
)
);
...
@@ -428,13 +441,13 @@ static BOOL grab_clipping_window( const RECT *clip )
...
@@ -428,13 +441,13 @@ static BOOL grab_clipping_window( const RECT *clip )
if
(
!
clipping_cursor
)
if
(
!
clipping_cursor
)
{
{
disable_xinput2
();
if
(
msg_hwnd
)
DestroyWindow
(
msg_hwnd
);
if
(
msg_hwnd
)
DestroyWindow
(
msg_hwnd
);
return
FALSE
;
return
FALSE
;
}
}
if
(
msg_hwnd
)
if
(
msg_hwnd
)
{
{
data
->
clip_hwnd
=
msg_hwnd
;
data
->
clip_hwnd
=
msg_hwnd
;
enable_xinput2
();
sync_window_cursor
(
clip_window
);
sync_window_cursor
(
clip_window
);
clip_rect
=
*
clip
;
clip_rect
=
*
clip
;
SendMessageW
(
GetDesktopWindow
(),
WM_X11DRV_CLIP_CURSOR
,
0
,
(
LPARAM
)
msg_hwnd
);
SendMessageW
(
GetDesktopWindow
(),
WM_X11DRV_CLIP_CURSOR
,
0
,
(
LPARAM
)
msg_hwnd
);
...
...
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