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

Add option to extend the osx non-native fullscreen behind the notch to the top of the screen #5759

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

wryanzimmerman
Copy link

This just adds a boolean option: macos_fullscreen_extend_behind_notch which is checked before the osx window calculates the borders to make non-native fullscreen go all the way to the top of a mac laptop with a notch, for use-cases (like mine) where that is useful.

I was also having issues with multiple monitors making the notch-avoiding window jump up and down when the active monitor changes on the release version, but I haven't been able to check if that issue still exists on main and whether or not this option fixes it. I will once I'm back with my external monitor!

… so you can use the full screen if your terminal config already handles the notch.
… so you can use the full screen if your terminal config already handles the notch.
@wryanzimmerman
Copy link
Author

This is how it looks with the option enabled:

IMG_3418

Copy link
Owner

@wez wez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!
Please also add a page to the docs; you can use https://github.com/wez/wezterm/blob/main/docs/config/lua/config/macos_window_background_blur.md?plain=1 as a basis for it, creating a page for this new option alongside that one, but use {{since('nightly')}} for the version tag.

You can run ./ci/build-docs.sh serve to run the docs locally and preview how it looks.

None
let border_dimensions = if window_state.contains(WindowState::FULL_SCREEN)
&& !native_full_screen
&& !_config.macos_fullscreen_extend_behind_notch
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename the _config function parameter to config; the leading underscore is a rust convention to indicate that a variable/binding is unused. Since it is now used, that prefix should be removed.

Suggested change
&& !_config.macos_fullscreen_extend_behind_notch
&& !config.macos_fullscreen_extend_behind_notch

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