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
391afac6
Commit
391afac6
authored
Feb 23, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Windows that own popups should be managed.
parent
7b3a00c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
window.c
dlls/winex11.drv/window.c
+27
-0
No files found.
dlls/winex11.drv/window.c
View file @
391afac6
...
@@ -142,6 +142,31 @@ static void remove_startup_notification(Display *display, Window window)
...
@@ -142,6 +142,31 @@ static void remove_startup_notification(Display *display, Window window)
}
}
struct
has_popup_result
{
HWND
hwnd
;
BOOL
found
;
};
static
BOOL
CALLBACK
has_popup
(
HWND
hwnd
,
LPARAM
lparam
)
{
struct
has_popup_result
*
result
=
(
struct
has_popup_result
*
)
lparam
;
if
(
hwnd
==
result
->
hwnd
)
return
FALSE
;
/* popups are always above owner */
result
->
found
=
(
GetWindow
(
hwnd
,
GW_OWNER
)
==
result
->
hwnd
);
return
!
result
->
found
;
}
static
BOOL
has_owned_popups
(
HWND
hwnd
)
{
struct
has_popup_result
result
;
result
.
hwnd
=
hwnd
;
result
.
found
=
FALSE
;
EnumWindows
(
has_popup
,
(
LPARAM
)
&
result
);
return
result
.
found
;
}
/***********************************************************************
/***********************************************************************
* is_window_managed
* is_window_managed
*
*
...
@@ -181,6 +206,8 @@ static BOOL is_window_managed( HWND hwnd, UINT swp_flags, const RECT *window_rec
...
@@ -181,6 +206,8 @@ static BOOL is_window_managed( HWND hwnd, UINT swp_flags, const RECT *window_rec
/* application windows are managed */
/* application windows are managed */
ex_style
=
GetWindowLongW
(
hwnd
,
GWL_EXSTYLE
);
ex_style
=
GetWindowLongW
(
hwnd
,
GWL_EXSTYLE
);
if
(
ex_style
&
WS_EX_APPWINDOW
)
return
TRUE
;
if
(
ex_style
&
WS_EX_APPWINDOW
)
return
TRUE
;
/* windows that own popups are managed */
if
(
has_owned_popups
(
hwnd
))
return
TRUE
;
/* default: not managed */
/* default: not managed */
return
FALSE
;
return
FALSE
;
}
}
...
...
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