2 parents 678d7fd + 3335634 commit ef1fe24Copy full SHA for ef1fe24
1 file changed
watchers/src/watchers/gnome_window.rs
@@ -38,6 +38,10 @@ impl WindowWatcher {
38
.body()
39
.deserialize()
40
.with_context(|| "DBus interface cannot be parsed as string")?;
41
+ if json == "{}" {
42
+ trace!("No window is active (empty JSON)");
43
+ return Ok(WindowData::default());
44
+ }
45
serde_json::from_str(&json).with_context(|| {
46
format!("DBus interface org.gnome.shell.extensions.FocusedWindow returned wrong JSON: {json}")
47
})
0 commit comments