xwayland: Fix display env variable race

This commit is contained in:
Victoria Brekenfeld 2023-01-25 13:20:17 +01:00
parent 7704f65d02
commit 4940d0823d
6 changed files with 16 additions and 10 deletions

View file

@ -914,7 +914,8 @@ impl State {
.common
.xwayland_state
.values()
.find_map(|s| s.display.map(|v| format!(":{}", v)))
.next()
.map(|s| format!(":{}", s.display))
.unwrap_or(String::new()),
)
.env_remove("COSMIC_SESSION_SOCK")