diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 0232e61..7758cac 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,10 +36,13 @@ struct WM<'a> { impl<'a> WM<'a> { pub fn new(conn: &'a RawConnection, screen_num: usize) -> Result<Self> { - Ok(Self { + let mut this = Self { conn: Connection::new(conn, screen_num)?, clients: ClientState::default(), - }) + }; + this.clients.update_geometry(&this.conn)?; + + Ok(this) } pub fn event_loop(&mut self) -> Result<()> { |