Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macos: hide dock globally if the dock conflicts #5363

Merged
merged 1 commit into from
Jan 25, 2025
Merged

Conversation

mitchellh
Copy link
Contributor

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.

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.
@mitchellh mitchellh enabled auto-merge January 25, 2025 04:19
@mitchellh mitchellh merged commit 71e62f9 into main Jan 25, 2025
59 checks passed
@mitchellh mitchellh deleted the push-uqvovynwxmvw branch January 25, 2025 04:30
@github-actions github-actions bot added this to the 1.1.0 milestone Jan 25, 2025
@milgrim
Copy link

milgrim commented Jan 25, 2025

Works as expected now, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants