From 4f015e66bc480363dc5ae492ac0cfb51ecb59b47 Mon Sep 17 00:00:00 2001 From: Patrick Jones Date: Sun, 12 Jun 2022 13:25:21 +0100 Subject: [PATCH] x11: query focus after repaint delay The focus events used to trigger a query of geometry are inaccurate, so the window's focus state should also be queried. refs: #2063 refs: #1992 --- window/src/os/x11/window.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/window/src/os/x11/window.rs b/window/src/os/x11/window.rs index f54686381..aeb779a32 100644 --- a/window/src/os/x11/window.rs +++ b/window/src/os/x11/window.rs @@ -564,6 +564,7 @@ impl XWindowInner { async_io::Timer::after(std::time::Duration::from_millis(delay)).await; XConnection::with_window_inner(window_id, |inner| { inner.sure_about_geometry = false; + inner.verify_focus = true; inner.invalidate(); Ok(()) });