summaryrefslogtreecommitdiff
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
parenta339653a03b5e270cb897145fce7367861369145 (diff)
Minor lints
-rw-r--r--src/clients/mod.rs6
-rw-r--r--src/conn_info/mod.rs5
2 files changed, 7 insertions, 4 deletions
diff --git a/src/clients/mod.rs b/src/clients/mod.rs
index bd44f1d..47eb094 100644
--- a/src/clients/mod.rs
+++ b/src/clients/mod.rs
@@ -12,9 +12,9 @@ use crate::{
use xcb::{
x::{
self, ChangeProperty, ConfigWindow, ConfigWindowMask, ConfigureNotifyEvent,
- ConfigureRequestEvent, ConfigureWindow, DeleteProperty, DestroyNotifyEvent, Drawable,
- EventMask, GetGeometry, GetWindowAttributes, InputFocus, MapRequestEvent, PropMode,
- SetInputFocus, UnmapNotifyEvent, Window,
+ ConfigureRequestEvent, ConfigureWindow, DeleteProperty, DestroyNotifyEvent, EventMask,
+ GetWindowAttributes, InputFocus, MapRequestEvent, PropMode, SetInputFocus,
+ UnmapNotifyEvent, Window,
},
xinerama, Extension,
};
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,