PowerLauncher can be snapped to zone - fix (#2896)

This commit is contained in:
PrzemyslawTusinski
2020-05-12 19:33:42 +02:00
committed by GitHub
parent c9535749f5
commit e723e87c74

View File

@@ -89,8 +89,8 @@ void OrderMonitors(std::vector<std::pair<HMONITOR, RECT>>& monitorInfo)
size_t current = candidates[j]; size_t current = candidates[j];
// Compare (top, left) lexicographically // Compare (top, left) lexicographically
if (std::tie(monitorInfo[current].second.top, monitorInfo[current].second.left) if (std::tie(monitorInfo[current].second.top, monitorInfo[current].second.left) <
< std::tie(monitorInfo[smallest].second.top, monitorInfo[smallest].second.left)) std::tie(monitorInfo[smallest].second.top, monitorInfo[smallest].second.left))
{ {
smallest = current; smallest = current;
} }
@@ -150,5 +150,9 @@ bool IsInterestingWindow(HWND window, const std::vector<std::wstring>& excludedA
{ {
return false; return false;
} }
if (find_app_name_in_path(filtered.process_path, { L"POWERLAUNCHER.EXE" }))
{
return false;
}
return true; return true;
} }