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
397cd1c0
Commit
397cd1c0
authored
May 26, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Remove now unnecessary ClipCursor forwarding to foreground thread.
parent
47e208e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
21 deletions
+2
-21
mouse.c
dlls/winex11.drv/mouse.c
+2
-21
No files found.
dlls/winex11.drv/mouse.c
View file @
397cd1c0
...
...
@@ -1564,20 +1564,9 @@ BOOL X11DRV_ClipCursor( const RECT *clip, BOOL reset )
if
(
!
reset
&&
grab_pointer
)
{
RECT
virtual_rect
=
NtUserGetVirtualScreenRect
();
HWND
foreground
=
NtUserGetForegroundWindow
();
DWORD
tid
,
pid
;
if
(
!
clip
)
clip
=
&
virtual_rect
;
/* forward request to the foreground window if it's in a different thread */
tid
=
NtUserGetWindowThread
(
foreground
,
&
pid
);
if
(
tid
&&
tid
!=
GetCurrentThreadId
()
&&
pid
==
GetCurrentProcessId
())
{
TRACE
(
"forwarding clip request to %p
\n
"
,
foreground
);
send_notify_message
(
foreground
,
WM_X11DRV_CLIP_CURSOR_REQUEST
,
FALSE
,
FALSE
);
return
TRUE
;
}
/* we are clipping if the clip rectangle is smaller than the screen */
if
(
clip
->
left
>
virtual_rect
.
left
||
clip
->
right
<
virtual_rect
.
right
||
clip
->
top
>
virtual_rect
.
top
||
clip
->
bottom
<
virtual_rect
.
bottom
)
...
...
@@ -1589,8 +1578,8 @@ BOOL X11DRV_ClipCursor( const RECT *clip, BOOL reset )
struct
x11drv_thread_data
*
data
=
x11drv_thread_data
();
if
(
data
&&
data
->
clip_hwnd
)
{
if
(
EqualRect
(
clip
,
&
clip_rect
)
||
clip_fullscreen_window
(
foreground
,
TRUE
))
return
TRUE
;
if
(
EqualRect
(
clip
,
&
clip_rect
)
)
return
TRUE
;
if
(
clip_fullscreen_window
(
NtUserGetForegroundWindow
(),
TRUE
))
return
TRUE
;
}
}
}
...
...
@@ -1605,20 +1594,12 @@ BOOL X11DRV_ClipCursor( const RECT *clip, BOOL reset )
*/
LRESULT
clip_cursor_request
(
HWND
hwnd
,
BOOL
fullscreen
,
BOOL
reset
)
{
RECT
clip
;
if
(
hwnd
==
NtUserGetDesktopWindow
())
WARN
(
"ignoring clip cursor request on desktop window.
\n
"
);
else
if
(
hwnd
!=
NtUserGetForegroundWindow
())
WARN
(
"ignoring clip cursor request on non-foreground window.
\n
"
);
else
if
(
fullscreen
)
clip_fullscreen_window
(
hwnd
,
reset
);
else
{
NtUserGetClipCursor
(
&
clip
);
X11DRV_ClipCursor
(
&
clip
,
FALSE
);
}
return
0
;
}
...
...
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