pub enum WaylandFix {
Off,
Nudge,
Maximize,
}Expand description
Which #139 Wayland workaround to apply when showing the main window.
Variants§
Implementations§
Source§impl WaylandFix
impl WaylandFix
Sourcepub fn from_env_value(value: Option<&str>) -> Self
pub fn from_env_value(value: Option<&str>) -> Self
Parse the ENTRACTE_WL_FIX value. Defaults to
WaylandFix::Maximize when unset, empty, or unrecognised —
Steffi confirmed maximize clears #139 on Ubuntu 24.04 / GNOME /
Wayland, so a stock build applies the known-good fix. Matching is
case-insensitive and whitespace-trimmed. Pure so strategy selection
is unit-testable without touching the environment or a windowing
system.
Trait Implementations§
Source§impl Clone for WaylandFix
impl Clone for WaylandFix
Source§fn clone(&self) -> WaylandFix
fn clone(&self) -> WaylandFix
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WaylandFix
Source§impl Debug for WaylandFix
impl Debug for WaylandFix
impl Eq for WaylandFix
Source§impl PartialEq for WaylandFix
impl PartialEq for WaylandFix
impl StructuralPartialEq for WaylandFix
Auto Trait Implementations§
impl Freeze for WaylandFix
impl RefUnwindSafe for WaylandFix
impl Send for WaylandFix
impl Sync for WaylandFix
impl Unpin for WaylandFix
impl UnsafeUnpin for WaylandFix
impl UnwindSafe for WaylandFix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more