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
b1d273bb
Commit
b1d273bb
authored
May 31, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Move clip_fullscreen_window foreground check inside it.
parent
3cca65e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
event.c
dlls/winex11.drv/event.c
+1
-1
mouse.c
dlls/winex11.drv/mouse.c
+3
-5
No files found.
dlls/winex11.drv/event.c
View file @
b1d273bb
...
...
@@ -782,7 +782,7 @@ static BOOL X11DRV_FocusIn( HWND hwnd, XEvent *xev )
if
(
use_take_focus
)
{
if
(
hwnd
==
NtUserGetForegroundWindow
())
clip_fullscreen_window
(
hwnd
,
FALSE
);
clip_fullscreen_window
(
hwnd
,
FALSE
);
return
TRUE
;
}
...
...
dlls/winex11.drv/mouse.c
View file @
b1d273bb
...
...
@@ -500,6 +500,8 @@ BOOL clip_fullscreen_window( HWND hwnd, BOOL reset )
BOOL
fullscreen
;
if
(
hwnd
==
NtUserGetDesktopWindow
())
return
FALSE
;
if
(
hwnd
!=
NtUserGetForegroundWindow
())
return
FALSE
;
style
=
NtUserGetWindowLongW
(
hwnd
,
GWL_STYLE
);
if
(
!
(
style
&
WS_VISIBLE
))
return
FALSE
;
if
((
style
&
(
WS_POPUP
|
WS_CHILD
))
==
WS_CHILD
)
return
FALSE
;
...
...
@@ -628,12 +630,8 @@ static void send_mouse_input( HWND hwnd, Window window, unsigned int state, INPU
last_cursor_change
=
input
->
u
.
mi
.
time
;
}
if
(
hwnd
!=
NtUserGetDesktopWindow
())
{
hwnd
=
NtUserGetAncestor
(
hwnd
,
GA_ROOT
);
if
((
input
->
u
.
mi
.
dwFlags
&
(
MOUSEEVENTF_LEFTDOWN
|
MOUSEEVENTF_RIGHTDOWN
))
&&
hwnd
==
NtUserGetForegroundWindow
())
if
(
input
->
u
.
mi
.
dwFlags
&
(
MOUSEEVENTF_LEFTDOWN
|
MOUSEEVENTF_RIGHTDOWN
))
clip_fullscreen_window
(
hwnd
,
FALSE
);
}
/* update the wine server Z-order */
...
...
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