Skip to content

Commit

Permalink
hideInCorner: don't try to push down further than necessary
Browse files Browse the repository at this point in the history
It was a bug in calculations

_fixes #413 (comment)
  • Loading branch information
nikitabobko committed Aug 14, 2024
1 parent 3249e8e commit 9faadae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/AppBundle/tree/MacWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 9faadae

Please sign in to comment.