summaryrefslogtreecommitdiff
path: root/src/conn_info
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 21:10:02 +0100
committertcmal <me@aria.rip>2024-08-28 21:34:33 +0100
commitafff36ca723f5297d26144dd70a18250653bfb3e (patch)
treea1221ac4c2850a1ad8e2c281a3743506f27cfc35 /src/conn_info
parenta339653a03b5e270cb897145fce7367861369145 (diff)
Minor lints
Diffstat (limited to 'src/conn_info')
-rw-r--r--src/conn_info/mod.rs5
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,