Use IsWindowVisible instead of GetWindowLong(GWL_STYLE) & WS_VISIBLE
as a test for desktop visibility.
This commit is contained in:
parent
9e53994abe
commit
391d85d81d
|
@ -68,7 +68,7 @@ static int running_under_wine ()
|
||||||
|
|
||||||
static int running_on_visible_desktop ()
|
static int running_on_visible_desktop ()
|
||||||
{
|
{
|
||||||
return (GetWindowLongA (GetDesktopWindow (), GWL_STYLE) & WS_VISIBLE) != 0;
|
return IsWindowVisible( GetDesktopWindow() );
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_version ()
|
void print_version ()
|
||||||
|
|
Loading…
Reference in New Issue