1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-25 10:22:43 +03:00
wezterm/window
Michael Baird af4f5edb50 Fix notch avoidance padding in full screen mode
Fixes https://github.com/wez/wezterm/issues/3807

The values returned by [`safeAreaInsets`][0] need to be multipled by the
scale factor of the display (in case of the MacBook Pro 14-inch, 2021, a
value of 2.0).

There's a code comment referencing [#1737 (comment)][1], where an extra
`2` was added to this number, but something must have changed since then
because I cannot see a need for this now.

[0]: https://developer.apple.com/documentation/appkit/nsscreen/3882821-safeareainsets
[1]: https://github.com/wez/wezterm/issues/1737#issuecomment-1085923867
2024-06-07 17:40:11 -07:00
..
examples Accept drag and drop of URLs from browsers and plain text on X11 2024-05-05 12:48:09 -07:00
src Fix notch avoidance padding in full screen mode 2024-06-07 17:40:11 -07:00
build.rs Fix clippy lints 2024-05-04 16:09:38 -07:00
Cargo.toml deps: update macos specific packages 2024-05-13 14:10:09 -07:00
LICENSE.md Add missing license files 2022-08-17 07:19:12 -07:00