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
This commit is contained in:
Patrick Jones authored and Wez Furlong committed 2022-06-15 20:42:26 -07:00
1 parent 3f01c04911
commit 4f015e66bc
1 file changed
+1
+1
View File
@@ -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(())
});