more shorthands

main
Zynh0722 2024-01-31 22:35:46 -08:00
parent 7252529777
commit 669c2909fd
1 changed files with 4 additions and 4 deletions

View File

@ -27,16 +27,16 @@ impl<'a, C: Connection> WmState<'a, C> {
conn.create_gc(black_gc, screen.root, &gc_aux)?;
conn.close_font(font)?;
let wm_protocols = conn.intern_atom(false, b"WM_PROTOCOLS")?;
let wm_delete_window = conn.intern_atom(false, b"WM_DELETE_WINDOW")?;
let wm_protocols = conn.intern_atom(false, b"WM_PROTOCOLS")?.reply()?.atom;
let wm_delete_window = conn.intern_atom(false, b"WM_DELETE_WINDOW")?.reply()?.atom;
Ok(WmState {
conn,
screen_num,
black_gc,
windows: Vec::default(),
wm_protocols: wm_protocols.reply()?.atom,
wm_delete_window: wm_delete_window.reply()?.atom,
wm_protocols,
wm_delete_window,
})
}
}