When using WebGPU front end, creating and closing windows will cause
VM:IOSurface memory leak, due to an unreleased object reference.
Also with some other trivial memory leak prevention measures.
Fixes a bunch of warnings like this:
```
warning: hiding a lifetime that's elided elsewhere is confusing
--> window/src/os/macos/window.rs:670:23
|
670 | fn display_handle(&self) -> Result<DisplayHandle, HandleError> {
| ^^^^^ ------------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
|
670 | fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError> {
| ++++
```
This lint was added in Rust 1.89: https://github.com/rust-lang/rust/issues/141787
Prevent printing two backtraces.
env-bootstrap/src/lib.rs's `register_panic_hook()` already prints a
backtrace unconditionally, setting `RUST_BACKTRACE=1` causes a duplicate
to be printed.
Now that validating service menu items doesn't loop forever, it can be
re-enabled.
It still won't have all possible services listed until/unless validation
is implemented more thoroughly, but some are already present.
These crates are all deprecated in favor of the new objc2 crate,
but the migration to objc2 is non-trivial. Meanwhile, the volume
of deprecation warnings is overwhelming and getting in the way.
Pin these deps back to a versions prior to the mass deprecation
so that we're not drowning in spew in the meantime.
The current `pct_to_glyph` algorithm would unintentionally produce `\u{f0aa6}`
for percentages in the range 96..=100.
Use a different algorithm that:
* uses an empty circle for the first 5%
* uses a filled circle for the last 5%
* has a roughly even distribution for the rest of the range
https://github.com/wezterm/wezterm/pull/6850 changed the behavior
of spawning in such a way that if you had a default_prog and split
a pane, the default_prog you had set would not take effect.
This is because a later normalization stage would skip applying
resolving/applying the default_prog because it thought that the
command builder was already fully baked.
This commit allows that fixup logic to reason about the configured
default_prog (which may be different in a WSL context!) and fixup
the builder.
This is an alternative approach to resolving
https://github.com/wezterm/wezterm/issues/6955 for which a patch was
proprosed in https://github.com/wezterm/wezterm/pull/6972. That PR
wouldn't be quite right because the underlying logic could consider the
default_prog from a domain-specific source, rather than the global
configuration.
A couple of these are for things that we don't support; the intent
is not to support the associated features so much as avoid emitting
warnings when loading an ssh config that references them, especially if
the offending section of the config isn't actually being used by
wezterm.
refs: https://github.com/wezterm/wezterm/issues/6975
We're not using; we only use either Metal via WebGpu (and thus
don't ever get into the egl code), or Egl via the native opengl
implementation.
So we can bail out of the loop with the swrast fallback like
we do on windows.
closes: https://github.com/wezterm/wezterm/issues/6819