Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
121f9c7e
Commit
121f9c7e
authored
18 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
user: Don't bother checking the WS_VISIBLE style on the desktop window.
parent
0c0ab500
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/user/win.c
+15
-10
15 additions, 10 deletions
dlls/user/win.c
with
15 additions
and
10 deletions
dlls/user/win.c
+
15
−
10
View file @
121f9c7e
...
...
@@ -249,7 +249,6 @@ static HWND *list_window_children( HWND hwnd, ATOM atom, DWORD tid )
*
* Build an array of all parents of a given window, starting with
* the immediate parent. The array must be freed with HeapFree.
* Returns NULL if window is a top-level window.
*/
static
HWND
*
list_window_parents
(
HWND
hwnd
)
{
...
...
@@ -2611,14 +2610,17 @@ BOOL WINAPI IsChild( HWND parent, HWND child )
BOOL
WINAPI
IsWindowVisible
(
HWND
hwnd
)
{
HWND
*
list
;
BOOL
retval
;
BOOL
retval
=
TRUE
;
int
i
;
if
(
!
(
GetWindowLongW
(
hwnd
,
GWL_STYLE
)
&
WS_VISIBLE
))
return
FALSE
;
if
(
!
(
list
=
list_window_parents
(
hwnd
)))
return
TRUE
;
for
(
i
=
0
;
list
[
i
];
i
++
)
if
(
!
(
GetWindowLongW
(
list
[
i
],
GWL_STYLE
)
&
WS_VISIBLE
))
break
;
retval
=
!
list
[
i
];
if
(
list
[
0
]
&&
list
[
1
])
/* desktop window is considered always visible so we don't check it */
{
for
(
i
=
0
;
list
[
i
+
1
];
i
++
)
if
(
!
(
GetWindowLongW
(
list
[
i
],
GWL_STYLE
)
&
WS_VISIBLE
))
break
;
retval
=
!
list
[
i
+
1
];
}
HeapFree
(
GetProcessHeap
(),
0
,
list
);
return
retval
;
}
...
...
@@ -2634,7 +2636,7 @@ BOOL WINAPI IsWindowVisible( HWND hwnd )
BOOL
WIN_IsWindowDrawable
(
HWND
hwnd
,
BOOL
icon
)
{
HWND
*
list
;
BOOL
retval
;
BOOL
retval
=
TRUE
;
int
i
;
LONG
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
...
...
@@ -2642,10 +2644,13 @@ BOOL WIN_IsWindowDrawable( HWND hwnd, BOOL icon )
if
((
style
&
WS_MINIMIZE
)
&&
icon
&&
GetClassLongPtrW
(
hwnd
,
GCLP_HICON
))
return
FALSE
;
if
(
!
(
list
=
list_window_parents
(
hwnd
)))
return
TRUE
;
for
(
i
=
0
;
list
[
i
];
i
++
)
if
((
GetWindowLongW
(
list
[
i
],
GWL_STYLE
)
&
(
WS_VISIBLE
|
WS_MINIMIZE
))
!=
WS_VISIBLE
)
break
;
retval
=
!
list
[
i
];
if
(
list
[
0
]
&&
list
[
1
])
/* desktop window is considered always visible so we don't check it */
{
for
(
i
=
0
;
list
[
i
+
1
];
i
++
)
if
((
GetWindowLongW
(
list
[
i
],
GWL_STYLE
)
&
(
WS_VISIBLE
|
WS_MINIMIZE
))
!=
WS_VISIBLE
)
break
;
retval
=
!
list
[
i
+
1
];
}
HeapFree
(
GetProcessHeap
(),
0
,
list
);
return
retval
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment