From b3649f4afa16880f6ae1dc8f7b894601516bffe9 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sat, 18 Mar 2023 14:35:20 +0000 Subject: [PATCH] steamcompmgr: Don't treat LAYERED windows as dropdowns if they have WS_EX_APPWINDOW --- src/steamcompmgr.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index f65f0f6..0772df7 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -2370,9 +2370,13 @@ win_maybe_a_dropdown( steamcompmgr_win_t *w ) // Only do this if we have CONTROLPARENT right now. Some other apps, such as the // Street Fighter V (310950) Splash Screen also use LAYERED and TOOLWINDOW, and we don't // want that to be overlayed. + // Ignore LAYERED if it's marked as top-level with WS_EX_APPWINDOW. // TODO: Find more apps using LAYERED. const uint32_t validLayered = WS_EX_CONTROLPARENT | WS_EX_LAYERED; - if ( w->hasHwndStyleEx && ( ( w->hwndStyleEx & validLayered ) == validLayered ) ) + const uint32_t invalidLayered = WS_EX_APPWINDOW; + if ( w->hasHwndStyleEx && + ( ( w->hwndStyleEx & validLayered ) == validLayered ) && + ( ( w->hwndStyleEx & invalidLayered ) == 0 ) ) return true; // Josh: