From 7addcf5f72b469e15384473388339b3f3b70e840 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 23 Jan 2022 18:26:34 +0800 Subject: [PATCH] update a comment --- services/gam/src/contexts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/gam/src/contexts.rs b/services/gam/src/contexts.rs index a375e9e94..3533923a0 100644 --- a/services/gam/src/contexts.rs +++ b/services/gam/src/contexts.rs @@ -86,7 +86,7 @@ pub(crate) const BOOT_CONTEXT_TRUSTLEVEL: u8 = 254; */ pub(crate) struct ContextManager { tm: TokenManager, - contexts: HashMap::<[u32; 4], UxContext>, // historical note: we used to limit the number of contexts to prevent rogue UX elements, but now we track valid ones in 'tokens.rs', allowing context storage allocations to grow on-demand. + contexts: HashMap::<[u32; 4], UxContext>, focused_context: Option<[u32; 4]>, // app_token of the app that has I/O focus, if any last_context: Option<[u32; 4]>, // previously focused context, if any imef: ime_plugin_api::ImeFrontEnd,