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
dcdf7c55
Commit
dcdf7c55
authored
Jul 20, 2007
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jul 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Treat desktop as a top-level window.
parent
9380eb31
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
+2
-5
msg.c
dlls/user32/tests/msg.c
+1
-1
win.c
dlls/user32/tests/win.c
+0
-3
window.c
server/window.c
+1
-1
No files found.
dlls/user32/tests/msg.c
View file @
dcdf7c55
...
...
@@ -9250,7 +9250,7 @@ static void test_SetForegroundWindow(void)
trace
(
"SetForegroundWindow( GetDesktopWindow() )
\n
"
);
SetForegroundWindow
(
GetDesktopWindow
()
);
ok_sequence
(
SetForegroundWindowSeq
,
"SetForegroundWindow( desktop ) away from "
"foreground top level window"
,
TRU
E
);
"foreground top level window"
,
FALS
E
);
trace
(
"done
\n
"
);
DestroyWindow
(
hwnd
);
...
...
dlls/user32/tests/win.c
View file @
dcdf7c55
...
...
@@ -2213,12 +2213,9 @@ static void test_SetForegroundWindow(HWND hwnd)
hwnd2
=
GetForegroundWindow
();
ok
(
hwnd2
==
hwnd
,
"Wrong foreground window %p
\n
"
,
hwnd2
);
todo_wine
{
ok
(
SetForegroundWindow
(
GetDesktopWindow
()
),
"SetForegroundWindow(desktop) error: %d
\n
"
,
GetLastError
());
hwnd2
=
GetForegroundWindow
();
ok
(
hwnd2
!=
hwnd
,
"Wrong foreground window %p
\n
"
,
hwnd2
);
}
ShowWindow
(
hwnd
,
SW_HIDE
);
check_wnd_state
(
0
,
0
,
0
,
0
);
...
...
server/window.c
View file @
dcdf7c55
...
...
@@ -514,7 +514,7 @@ int is_child_window( user_handle_t parent, user_handle_t child )
int
is_top_level_window
(
user_handle_t
window
)
{
struct
window
*
win
=
get_user_object
(
window
,
USER_WINDOW
);
return
(
win
&&
win
->
parent
&&
is_desktop_window
(
win
->
parent
));
return
(
win
&&
(
is_desktop_window
(
win
)
||
is_desktop_window
(
win
->
parent
)
));
}
/* make a window active if possible */
...
...
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