mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
PowerLauncher can be snapped to zone - fix (#2896)
This commit is contained in:
committed by
GitHub
parent
c9535749f5
commit
e723e87c74
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user