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
9da0c00a
Commit
9da0c00a
authored
Apr 06, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use top level window as dialog parent for modal dialogs.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5e65b652
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
dialog.c
dlls/user32/dialog.c
+8
-8
No files found.
dlls/user32/dialog.c
View file @
9da0c00a
...
...
@@ -587,24 +587,24 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
if
(
modal
&&
owner
)
{
HWND
parent
;
disabled_owner
=
owner
;
/*
* Owner needs to be top level window. We need to duplicate the logic from server,
* because we need to disable it before creating dialog window.
* because we need to disable it before creating dialog window. Note that we do that
* even if dialog has WS_CHILD, but only for modal dialogs, which matched what
* Windows does.
*/
while
((
GetWindowLongW
(
disabled_
owner
,
GWL_STYLE
)
&
(
WS_POPUP
|
WS_CHILD
))
==
WS_CHILD
)
while
((
GetWindowLongW
(
owner
,
GWL_STYLE
)
&
(
WS_POPUP
|
WS_CHILD
))
==
WS_CHILD
)
{
parent
=
GetParent
(
disabled_
owner
);
parent
=
GetParent
(
owner
);
if
(
!
parent
||
parent
==
GetDesktopWindow
())
break
;
disabled_
owner
=
parent
;
owner
=
parent
;
}
if
(
IsWindowEnabled
(
disabled_
owner
))
if
(
IsWindowEnabled
(
owner
))
{
flags
|=
DF_OWNERENABLED
;
disabled_owner
=
owner
;
EnableWindow
(
disabled_owner
,
FALSE
);
}
else
disabled_owner
=
NULL
;
}
if
(
unicode
)
...
...
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