xstate: avoid crashing if setting fullscreen state fails
Could be triggered by spamming alt+z with gpu-screen-recorder-ui.
This commit is contained in:
parent
b699ce62a1
commit
42ffd06d1e
1 changed files with 5 additions and 3 deletions
|
|
@ -897,15 +897,17 @@ impl XConnection for RealConnection {
|
|||
} else {
|
||||
&[]
|
||||
};
|
||||
self.connection
|
||||
|
||||
if let Err(e) = self.connection
|
||||
.send_and_check_request(&x::ChangeProperty::<x::Atom> {
|
||||
mode: x::PropMode::Replace,
|
||||
window,
|
||||
property: atoms.net_wm_state,
|
||||
r#type: x::ATOM_ATOM,
|
||||
data,
|
||||
})
|
||||
.unwrap();
|
||||
}) {
|
||||
warn!("Failed to set fullscreen state on {window:?} ({e})");
|
||||
}
|
||||
}
|
||||
|
||||
fn focus_window(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue