From afff36ca723f5297d26144dd70a18250653bfb3e Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 21:10:02 +0100 Subject: Minor lints --- src/conn_info/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/conn_info/mod.rs') 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(&self, req: &R) -> VoidCookieChecked where R: xcb::RequestWithoutReply + Debug, -- cgit v1.2.3