linux/x11: Mark windows as destroyed after destroy request (#12892)

Turns out we still get FocusOut and UnmapNotify events after the window
has been destroyed, which resulted in error messages popping up because
we can't find the window anymore that we want to mark as unfocused.



Release Notes:

- N/A
This commit is contained in:
Thorsten Ball 2024-06-11 17:23:48 +02:00 committed by GitHub
parent a06189bbed
commit ec9e700e70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -458,6 +458,7 @@ impl X11Client {
state
.windows
.get(&win)
.filter(|window_reference| !window_reference.window.state.borrow().destroyed)
.map(|window_reference| window_reference.window.clone())
}