From 0cb8dbdfc5ee73b8cbc200f175f467ebead55201 Mon Sep 17 00:00:00 2001 From: Nikita Bobko Date: Mon, 12 Aug 2024 03:53:05 +0200 Subject: [PATCH] hideInCorner: don't try to push down further than necessary It was a bug in calculations _fixes https://github.com/nikitabobko/AeroSpace/issues/413#issuecomment-2289944963 --- Sources/AppBundle/tree/MacWindow.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AppBundle/tree/MacWindow.swift b/Sources/AppBundle/tree/MacWindow.swift index 382632c3..bfe747b6 100644 --- a/Sources/AppBundle/tree/MacWindow.swift +++ b/Sources/AppBundle/tree/MacWindow.swift @@ -120,7 +120,7 @@ final class MacWindow: Window, CustomStringConvertible { switch corner { case .bottomLeftCorner: guard let s = getSize() else { fallthrough } - p = nodeMonitor.visibleRect.bottomLeftCorner + CGPoint(x: 1, y: -1) + CGPoint(x: -s.width, y: s.height) + p = nodeMonitor.visibleRect.bottomLeftCorner + CGPoint(x: 1, y: -1) + CGPoint(x: -s.width, y: 0) case .bottomRightCorner: p = nodeMonitor.visibleRect.bottomRightCorner - CGPoint(x: 1, y: 1) }