GlosSITarget: Only allow desktop-config if any app is launched

pull/169/head
Peter Repukat 2 years ago
parent 33623936ed
commit e4ffc86272

@ -46,7 +46,7 @@ inline struct Window {
inline struct Controller {
int maxControllers = 4;
bool allowDesktopConfig = true;
bool allowDesktopConfig = Settings::launch.launch;
} controller;
inline bool checkIsUwp(const std::wstring& launch_path)

@ -393,7 +393,7 @@ void SteamTarget::keepControllerConfig(bool keep)
#ifdef _WIN32
HWND SteamTarget::keepFgWindowHookFn()
{
if (!Settings::controller.allowDesktopConfig) {
if (!Settings::controller.allowDesktopConfig || !Settings::launch.launch) {
return target_window_handle_;
}
subhook::ScopedHookRemove remove(&getFgWinHook);

Loading…
Cancel
Save