KDE: Add support for window matching.

pull/448/head
N4tus 3 months ago
parent 9405ce0516
commit 070686ce1f

@ -174,12 +174,12 @@ impl Client for KdeClient {
conn_res.is_ok()
}
fn current_window(&mut self) -> Option<String> {
// TODO: not implemented
None
let aw = self.active_window.lock().ok()?;
Some(aw.title.clone())
}
fn current_application(&mut self) -> Option<String> {
let aw = self.active_window.lock().unwrap();
let aw = self.active_window.lock().ok()?;
Some(aw.res_class.clone())
}
}

Loading…
Cancel
Save