Skip to content

Commit 0cb8dbd

Browse files
committed
hideInCorner: don't try to push down further than necessary
It was a bug in calculations _fixes #413 (comment)
1 parent 5861e85 commit 0cb8dbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/AppBundle/tree/MacWindow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ final class MacWindow: Window, CustomStringConvertible {
120120
switch corner {
121121
case .bottomLeftCorner:
122122
guard let s = getSize() else { fallthrough }
123-
p = nodeMonitor.visibleRect.bottomLeftCorner + CGPoint(x: 1, y: -1) + CGPoint(x: -s.width, y: s.height)
123+
p = nodeMonitor.visibleRect.bottomLeftCorner + CGPoint(x: 1, y: -1) + CGPoint(x: -s.width, y: 0)
124124
case .bottomRightCorner:
125125
p = nodeMonitor.visibleRect.bottomRightCorner - CGPoint(x: 1, y: 1)
126126
}

0 commit comments

Comments
 (0)