fix: quick terminal hidden by macos menu bar

ghostty#5000 changed the window level from `.popupMenu` to `.floating`
to improve IME support. However, this introduced a side effect which
render the Quick Terminal (QT) below the macOS menu bar, whereas
previously it would cover it.

When positioned on `right` and `left`, the top of the QT becomes
partially hidden. This PR adjust the size of the QT to ensure it remains
fully visible and stays below the menu bar.
This commit is contained in:
Damien Mehala
2025-01-19 11:04:01 +01:00
parent 72d085525b
commit 4956d36ee6

View File

@ -69,7 +69,7 @@ enum QuickTerminalPosition : String {
finalSize.width = screen.frame.width finalSize.width = screen.frame.width
case .left, .right: case .left, .right:
finalSize.height = screen.frame.height finalSize.height = screen.visibleFrame.height
case .center: case .center:
finalSize.width = screen.frame.width / 2 finalSize.width = screen.frame.width / 2