From 3838f3bc15198180f786bce35fb80f17283af840 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 4 Dec 2022 18:12:05 +0800 Subject: [PATCH] add a pause for context swaps on menu release --- services/gam/src/menu.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/services/gam/src/menu.rs b/services/gam/src/menu.rs index b71864927..c1586da25 100644 --- a/services/gam/src/menu.rs +++ b/services/gam/src/menu.rs @@ -323,6 +323,7 @@ impl<'a> Menu<'a> { // give up focus before issuing the command, as some commands conflict with loss of focus... if mi.close_on_select { self.gam.relinquish_focus().unwrap(); + xous::yield_slice(); #[cfg(not(target_os = "xous"))] ticktimer_server::Ticktimer::new().unwrap().sleep_ms(100).unwrap(); }