feat: snap launcher on release at upper-third alignment

This commit is contained in:
2026-10-12 12:48:39 +02:00
parent dc7cf07204
commit 54a7d8f494
5 changed files with 28 additions and 37 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ public struct LauncherAlignment: Sendable {
// Whole-point origins keep the guides aligned with AppKit's window positioning.
targetFrame = CGRect(
x: (visibleFrame.midX - windowFrame.width / 2).rounded(.down),
y: (visibleFrame.midY - windowFrame.height / 2).rounded(.down),
y: (visibleFrame.maxY - visibleFrame.height / 5 - windowFrame.height).rounded(.down),
width: windowFrame.width,
height: windowFrame.height
)