diff --git a/src/sources/windows.rs b/src/sources/windows.rs index 9ca22dc..610b1bc 100644 --- a/src/sources/windows.rs +++ b/src/sources/windows.rs @@ -19,13 +19,14 @@ impl Window { fn is_normal_window(&self, con: &ewmh::Connection, window: u32) -> Result { let wm_type_reply = ewmh::get_wm_window_type(con, window).get_reply()?; + for atom in wm_type_reply.atoms() { if *atom == con.WM_WINDOW_TYPE_NORMAL() { return Ok(true); } } - Err(xcb::GenericError{ptr: ptr::null_mut()}) + Ok(false) } fn window_category(&self, con: &ewmh::Connection, window: u32) -> Result { @@ -94,7 +95,7 @@ impl Source for Window { match self.is_normal_window(&ewmh_conn, *w) { Ok(true) => {}, Ok(false) => continue, - Err(_err) => continue + Err(_err) => {} } let title = self.window_title(&ewmh_conn, *w).unwrap();