summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/clients/mod.rs1
-rw-r--r--src/main.rs2
2 files changed, 2 insertions, 1 deletions
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)
}