mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
winit-orbital: Respect ORBITAL_DISPLAY
This commit is contained in:
@@ -121,8 +121,14 @@ impl fmt::Display for WindowProperties<'_> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(
|
||||
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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user