diff options
-rw-r--r-- | src/clients/mod.rs | 6 | ||||
-rw-r--r-- | src/conn_info/mod.rs | 5 |
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, |