mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 02:06:36 +02:00
[Workspaces]Fix snapshotting minimized apps (#37598)
* Fix snapshotting minimized packaged apps * Fix window arranger to work with the same windows as the snapshot tool. * spell checker * optimising code * Remove filter condition.
This commit is contained in:
@@ -52,6 +52,11 @@ namespace SnapshotUtils
|
||||
|
||||
for (const auto window : windows)
|
||||
{
|
||||
if (WindowFilter::FilterPopup(window))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// filter by window rect size
|
||||
RECT rect = WindowUtils::GetWindowRect(window);
|
||||
if (rect.right - rect.left <= 0 || rect.bottom - rect.top <= 0)
|
||||
@@ -93,7 +98,7 @@ namespace SnapshotUtils
|
||||
continue;
|
||||
}
|
||||
|
||||
// fix for the packaged apps that are not caught when minimized, e.g., Settings.
|
||||
// fix for the packaged apps that are not caught when minimized, e.g. Settings, Microsoft ToDo, ...
|
||||
if (processPath.ends_with(NonLocalizable::ApplicationFrameHost))
|
||||
{
|
||||
for (auto otherWindow : windows)
|
||||
@@ -110,11 +115,6 @@ namespace SnapshotUtils
|
||||
}
|
||||
}
|
||||
|
||||
if (WindowFilter::FilterPopup(window))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
auto data = Utils::Apps::GetApp(processPath, pid, installedApps);
|
||||
if (!data.has_value() || data->name.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user