more shorthands
This commit is contained in:
parent
7252529777
commit
669c2909fd
1 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue