mirror-ghostty/macos/Sources/Helpers
Mitchell Hashimoto a58b1998a9
macos: hide dock globally if the dock conflicts
Related to #5361

The fix in 5361 wasn't sufficient since it only applied if our app was
in the foreground. Our quick terminal is a non-activating NSPanel to
allow it to work on any space (fullscreen included). This means that
Ghostty doesn't become the active app when the quick terminal is shown
and another app is in the foreground.

To work around this, we now hide the dock globally when the quick
terminal is shown AND the dock is in a conflicting position. We restore
this state when the quick terminal is hidden, loses focus, or Ghostty is
quit.
2025-01-24 20:18:44 -08:00
..
SplitView macos: use pointerStyle for SplitView Divider 2024-09-20 22:02:21 -07:00
Backport.swift macos: change our minimum version to macOS 13 2024-10-09 14:41:57 -07:00
CodableBridge.swift style(macos): cleanup trailing spaces 2024-08-21 21:53:09 +02:00
CrossKit.swift Implement "Paste Selection" on macOS like Terminal.app 2025-01-08 09:26:13 -08:00
Cursor.swift macos: unhide cursor on clipboard confirmation 2024-09-21 09:59:40 -07:00
Dock.swift macos: hide dock globally if the dock conflicts 2025-01-24 20:18:44 -08:00
DraggableWindowView.swift macos: DraggableWindowView helper (unused currently) 2024-09-20 20:45:27 -07:00
Fullscreen.swift macos: autohide dock if quick terminal would conflict with it 2025-01-24 14:51:17 -08:00
HostingWindow.swift macos: add HostingWindow helper 2023-10-30 09:06:23 -07:00
KeyboardLayout.swift macos: detect IME input source change as part of keyDown event 2025-01-04 21:45:25 -08:00
MetalView.swift style(macos): cleanup trailing spaces 2024-08-21 21:53:09 +02:00
NSAppearance+Extension.swift macos: set NSAppearance on windowDidLoad 2024-12-22 19:33:01 -08:00
NSApplication+Extension.swift macos: autohide dock if quick terminal would conflict with it 2025-01-24 14:51:17 -08:00
NSImage+Extension.swift macos: colorized Ghostty icon begins! 2024-12-21 19:31:30 -08:00
NSPasteboard+Extension.swift fix: Ensure file paths derived from pasteboard operations are properly escaped 2025-01-14 00:18:28 +01:00
NSScreen+Extension.swift macos: change our minimum version to macOS 13 2024-10-09 14:41:57 -07:00
NSView+Extension.swift Make things work with really dark backgrounds 2024-04-02 22:28:34 +02:00
OSColor+Extension.swift macos: support the macos-icon configurations 2024-12-21 19:31:30 -08:00
String+Extension.swift style(macos): cleanup trailing spaces 2024-08-21 21:53:09 +02:00
VibrantLayer.h Make special blending mode class more generic 2024-02-11 00:53:18 +01:00
VibrantLayer.m Make special blending mode class more generic 2024-02-11 00:53:18 +01:00
View+Extension.swift macos: pointer style uses macOS 15 helpers 2024-09-20 22:02:21 -07:00
Weak.swift macos: rework toggle_visibility to better match iTerm2 2025-01-10 14:40:02 -08:00
Xcode.swift macos: clamp window size to screen size on screen parameter changes 2024-10-19 10:13:16 -07:00