From 8aed15f3a8a10dae448b70442a2cfb6d8ecc96f2 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Thu, 22 Oct 2020 19:44:23 +0200 Subject: [PATCH] allow WS_EX_TOOLWINDOW as valid windows to match 'Task Switching' --- src/win/advanced-scene-switcher-win.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/win/advanced-scene-switcher-win.cpp b/src/win/advanced-scene-switcher-win.cpp index bd37e3a8..ed88684c 100644 --- a/src/win/advanced-scene-switcher-win.cpp +++ b/src/win/advanced-scene-switcher-win.cpp @@ -23,8 +23,7 @@ static bool GetWindowTitle(HWND window, string &title) static bool WindowValid(HWND window) { - LONG_PTR styles, ex_styles; - RECT rect; + LONG_PTR styles; DWORD id; if (!IsWindowVisible(window)) @@ -33,12 +32,8 @@ static bool WindowValid(HWND window) if (id == GetCurrentProcessId()) return false; - GetClientRect(window, &rect); styles = GetWindowLongPtr(window, GWL_STYLE); - ex_styles = GetWindowLongPtr(window, GWL_EXSTYLE); - if (ex_styles & WS_EX_TOOLWINDOW) - return false; if (styles & WS_CHILD) return false;