summaryrefslogtreecommitdiff
path: root/src/clients/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/mod.rs')
-rw-r--r--src/clients/mod.rs14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/clients/mod.rs b/src/clients/mod.rs
index 70e3798..c7df881 100644
--- a/src/clients/mod.rs
+++ b/src/clients/mod.rs
@@ -30,7 +30,6 @@ impl WM<'_> {
// - Border width
// - Size and position if floating
c.configure_notify(&self.conn);
- self.conn.flush()?;
} else {
// Configure it as requested, and sort the rest when we actually map the window
self.conn.send_and_check_request(&ConfigureWindow {
@@ -53,17 +52,13 @@ impl WM<'_> {
pub(crate) fn handle_configure_notify(&mut self, e: &ConfigureNotifyEvent) -> Result<()> {
if e.window() == self.conn.root() {
self.clients.update_geometry(&self.conn)?;
- self.conn.flush()?;
}
Ok(())
}
/// Removing destroyed windows from the client list and rearrange.
- pub(crate) fn handle_destroy_notify(&mut self, e: &DestroyNotifyEvent) -> Result<()> {
+ pub(crate) fn handle_destroy_notify(&mut self, e: &DestroyNotifyEvent) {
self.clients.unmanage(&self.conn, e.window(), true);
- self.conn.flush()?;
-
- Ok(())
}
/// Map a window, starting to manage it if needed.
@@ -85,13 +80,11 @@ impl WM<'_> {
// Start managing, and map window
self.clients.manage(&self.conn, e.window());
- self.conn.flush()?;
-
Ok(())
}
/// When a window is unmapped, either stop managing it or update its state.
- pub(crate) fn handle_unmap_notify(&mut self, e: &UnmapNotifyEvent) -> Result<()> {
+ pub(crate) fn handle_unmap_notify(&mut self, e: &UnmapNotifyEvent) {
if let Some(c) = self.clients.find_client_mut(e.window()) {
if e.is_from_send_event() {
let cookie = c.set_withdrawn(&self.conn, true);
@@ -100,10 +93,7 @@ impl WM<'_> {
} else {
self.clients.unmanage(&self.conn, e.window(), false);
}
- self.conn.flush()?;
}
-
- Ok(())
}
}