fix popout scopes issues

This commit is contained in:
Boof2015
2026-05-15 15:35:59 -04:00
parent 023b87801a
commit 2ac1554e8a
6 changed files with 367 additions and 33 deletions
+9
View File
@@ -145,6 +145,15 @@ export function clampDraggedMainWindowBounds(
return clampBoundsWithVisibleMargin(actualBounds, envelope, visibleMargin)
}
export function clampRestoredWindowBounds(
bounds: WindowBounds,
workAreas: readonly WorkAreaBounds[],
visibleMargin: number,
): WindowBounds {
const envelope = buildDisplayEnvelope(bounds, bounds, workAreas)
return clampBoundsWithVisibleMargin(bounds, envelope, visibleMargin)
}
export function raiseWindowAboveNormalPopouts(
mainWindow: StackableWindowLike | null,
popouts: Iterable<StackableWindowLike>,