From d10f18548b1e00ac838e12a72e30de48cd0486af Mon Sep 17 00:00:00 2001 From: tcmal Date: Thu, 27 Jun 2024 00:28:45 +0100 Subject: fix minor bugs --- src/clients/mod.rs | 1 - src/main.rs | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/clients/mod.rs b/src/clients/mod.rs index 58a5501..266a61d 100644 --- a/src/clients/mod.rs +++ b/src/clients/mod.rs @@ -251,7 +251,6 @@ impl ClientState { self.unfocus(conn); if let Some(new) = self.set_focused(mon, i) { new.set_border(conn, conn.colours.border_focused()); - new.set_urgent(false); new.sync_properties(conn, true); if !new.never_focus() { conn.send_request(&SetInputFocus { diff --git a/src/main.rs b/src/main.rs index d1c9a27..7c6c7bd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,7 +70,9 @@ impl<'a> WM<'a> { conn: Connection::new(conn, screen_num)?, clients: ClientState::default(), }; + this.clients.update_geometry(&this.conn)?; + keys::grab(&mut this.conn)?; Ok(this) } -- cgit v1.2.3