diff options
Diffstat (limited to 'src/conn_info/mod.rs')
-rw-r--r-- | src/conn_info/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/conn_info/mod.rs b/src/conn_info/mod.rs index ac257d4..a0b2b50 100644 --- a/src/conn_info/mod.rs +++ b/src/conn_info/mod.rs @@ -150,16 +150,18 @@ impl<'a> Connection<'a> { x::Cw::EventMask( x::EventMask::SUBSTRUCTURE_REDIRECT | x::EventMask::SUBSTRUCTURE_NOTIFY + | x::EventMask::STRUCTURE_NOTIFY | x::EventMask::BUTTON_PRESS | x::EventMask::ENTER_WINDOW | x::EventMask::FOCUS_CHANGE - | x::EventMask::STRUCTURE_NOTIFY | x::EventMask::PROPERTY_CHANGE, ), x::Cw::Cursor(cursors.normal()), ], }); + conn.flush()?; + Ok(Self { colours: Colours::new_with(conn, screen.default_colormap())?, atoms, @@ -225,6 +227,7 @@ impl<'a> Connection<'a> { } /// Delegate for [`RawConnection::send_request_checked`] + #[must_use] pub fn send_request_checked<R>(&self, req: &R) -> VoidCookieChecked where R: xcb::RequestWithoutReply + Debug, |