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
7257b62b
Commit
7257b62b
authored
May 28, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Try to activate topmost activable window in WINPOS_ActivateOtherWindow.
parent
c318cda8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
win.c
dlls/user32/tests/win.c
+5
-0
winpos.c
dlls/user32/winpos.c
+13
-1
No files found.
dlls/user32/tests/win.c
View file @
7257b62b
...
...
@@ -3766,6 +3766,11 @@ static void test_SetParent(void)
ok
(
bret
,
"SetForegroundWindow() failed
\n
"
);
check_active_state
(
popup
,
popup
,
popup
);
ShowWindow
(
parent
,
SW_SHOW
);
SetActiveWindow
(
popup
);
ok
(
DestroyWindow
(
popup
),
"DestroyWindow() failed
\n
"
);
check_active_state
(
parent
,
parent
,
parent
);
ok
(
DestroyWindow
(
parent
),
"DestroyWindow() failed
\n
"
);
ok
(
!
IsWindow
(
parent
),
"parent still exists
\n
"
);
...
...
dlls/user32/winpos.c
View file @
7257b62b
...
...
@@ -1536,7 +1536,19 @@ void WINPOS_ActivateOtherWindow(HWND hwnd)
for
(;;)
{
if
(
!
(
hwndTo
=
GetWindow
(
hwndTo
,
GW_HWNDNEXT
)))
break
;
if
(
can_activate_window
(
hwndTo
))
break
;
if
(
can_activate_window
(
hwndTo
))
goto
done
;
}
hwndTo
=
GetTopWindow
(
0
);
for
(;;)
{
if
(
hwndTo
==
hwnd
)
{
hwndTo
=
0
;
break
;
}
if
(
can_activate_window
(
hwndTo
))
goto
done
;
if
(
!
(
hwndTo
=
GetWindow
(
hwndTo
,
GW_HWNDNEXT
)))
break
;
}
done:
...
...
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