summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMaxVerevkin <maxxverrr@gmail.com>2024-03-30 21:44:26 +0200
committerMaxVerevkin <maxxverrr@gmail.com>2024-03-30 21:44:26 +0200
commitd054293e93e323cda41b16b6d4f32c2074136c4d (patch)
tree73e35529f2a25d9888d2ab4a6149b3191e0d8860 /src/main.rs
parentc6da876c3ef4ec9437c269b35bb3b569d159852d (diff)
downloadi3bar-mango-d054293e93e323cda41b16b6d4f32c2074136c4d.tar.gz
flush wayland connection after toggling visibility
removes an acidental delay
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index a6ea3e5..eed74ac 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -55,6 +55,7 @@ fn main() -> anyhow::Result<()> {
1
);
ctx.state.toggle_visibility(ctx.conn);
+ ctx.conn.flush(IoMode::Blocking)?;
Ok(event_loop::Action::Keep)
});