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
c1297ac0
Commit
c1297ac0
authored
Dec 19, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Only take managed popups into account when deciding whether to make a window managed.
parent
c4cf9024
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
window.c
dlls/winex11.drv/window.c
+6
-3
No files found.
dlls/winex11.drv/window.c
View file @
c1297ac0
...
...
@@ -159,12 +159,15 @@ struct has_popup_result
BOOL
found
;
};
static
BOOL
CALLBACK
has_popup
(
HWND
hwnd
,
LPARAM
lparam
)
static
BOOL
CALLBACK
has_
managed_
popup
(
HWND
hwnd
,
LPARAM
lparam
)
{
struct
has_popup_result
*
result
=
(
struct
has_popup_result
*
)
lparam
;
struct
x11drv_win_data
*
data
;
if
(
hwnd
==
result
->
hwnd
)
return
FALSE
;
/* popups are always above owner */
result
->
found
=
(
GetWindow
(
hwnd
,
GW_OWNER
)
==
result
->
hwnd
);
if
(
!
(
data
=
X11DRV_get_win_data
(
hwnd
)))
return
TRUE
;
if
(
GetWindow
(
hwnd
,
GW_OWNER
)
!=
result
->
hwnd
)
return
TRUE
;
result
->
found
=
data
->
managed
;
return
!
result
->
found
;
}
...
...
@@ -174,7 +177,7 @@ static BOOL has_owned_popups( HWND hwnd )
result
.
hwnd
=
hwnd
;
result
.
found
=
FALSE
;
EnumWindows
(
has_popup
,
(
LPARAM
)
&
result
);
EnumWindows
(
has_
managed_
popup
,
(
LPARAM
)
&
result
);
return
result
.
found
;
}
...
...
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