From d054293e93e323cda41b16b6d4f32c2074136c4d Mon Sep 17 00:00:00 2001 From: MaxVerevkin Date: Sat, 30 Mar 2024 21:44:26 +0200 Subject: flush wayland connection after toggling visibility removes an acidental delay --- src/main.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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) }); -- cgit v1.3.1