winit-orbital: Respect ORBITAL_DISPLAY

This commit is contained in:
bjorn3
2026-05-26 17:24:53 +02:00
committed by Jeremy Soller
parent 48890a95d1
commit 5a0a4ec2a3

View File

@@ -121,8 +121,14 @@ impl fmt::Display for WindowProperties<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!( write!(
f, f,
"/scheme/orbital/{}/{}/{}/{}/{}/{}", "{}/{}/{}/{}/{}/{}/{}",
self.flags, self.x, self.y, self.w, self.h, self.title std::env::var("ORBITAL_DISPLAY").unwrap_or_else(|_| "/scheme/orbital".to_owned()),
self.flags,
self.x,
self.y,
self.w,
self.h,
self.title
) )
} }
} }