diff options
| author | MaxVerevkin <maxxverrr@gmail.com> | 2024-03-30 21:44:26 +0200 |
|---|---|---|
| committer | MaxVerevkin <maxxverrr@gmail.com> | 2024-03-30 21:44:26 +0200 |
| commit | d054293e93e323cda41b16b6d4f32c2074136c4d (patch) | |
| tree | 73e35529f2a25d9888d2ab4a6149b3191e0d8860 /src/main.rs | |
| parent | c6da876c3ef4ec9437c269b35bb3b569d159852d (diff) | |
| download | i3bar-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.rs | 1 |
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) }); |
