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

Restore hidden titlebar after fullscreen #3572

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cristeahub
Copy link

@cristeahub cristeahub commented Dec 27, 2024

This fixes #3535 .

There exists an issue in ghostty on mac where if you have hidden your titlebar, then enter fullscreen, the titlebar will reappear after exiting fullscreen.

The reason for this is that after exiting fullscreen macos reapplies some styling on the new window created after exiting fullscreen. To combat this we will reapply the styling to hide the titlebar after exiting fullscreen.

Required config:

macos-titlebar-style = hidden
macos-non-native-fullscreen = true

Steps to reproduce:

  • Open Ghostty
  • Enter fullscreen (non-native)
  • Exit fullscreen

On main you will see the titlebar reappearing after exiting fullscreen, while that does not happen with this patch.

@cristeahub cristeahub force-pushed the cto/titlebar-hidden-after-fullscreen branch from 68997eb to 12c29de Compare December 27, 2024 20:57
This fixes ghostty-org#3535 .

There exists an issue in ghostty on mac where if you have hidden your
titlebar, then enter fullscreen, the titlebar will reappear after
exiting fullscreen.

The reason for this is that after exiting fullscreen macos reapplies
some styling on the new window created after exiting fullscreen. To
combat this we will reapply the styling to hide the titlebar after
exiting fullscreen.

Required config:
```
macos-titlebar-style = hidden
macos-non-native-fullscreen = true
```

Steps to reproduce:

- Open Ghostty
- Enter fullscreen (non-native)
- Exit fullscreen

On main you will see the titlebar reappearing after exiting fullscreen,
while that does not happen with this patch.
@cristeahub cristeahub force-pushed the cto/titlebar-hidden-after-fullscreen branch from 12c29de to bff9d3d Compare December 27, 2024 20:59
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.

macos-titlebar-style = hidden with macos-non-native-fullscreen = true shows titlebar on-top of the terminal
1 participant