diff --git a/espanso/src/cli/worker/engine/mod.rs b/espanso/src/cli/worker/engine/mod.rs index 249db13..f68309a 100644 --- a/espanso/src/cli/worker/engine/mod.rs +++ b/espanso/src/cli/worker/engine/mod.rs @@ -126,6 +126,8 @@ pub fn initialize_and_spawn( ), hotkeys: match_converter.get_hotkeys(), win32_exclude_orphan_events: default_config.win32_exclude_orphan_events(), + win32_keyboard_layout_cache_interval: default_config + .win32_keyboard_layout_cache_interval(), }) .expect("failed to initialize detector module"); let exit_source = super::engine::funnel::exit::ExitSource::new(exit_signal, &sequencer); diff --git a/espanso/src/patch/patches/mod.rs b/espanso/src/patch/patches/mod.rs index 5fddc89..c6dd4f7 100644 --- a/espanso/src/patch/patches/mod.rs +++ b/espanso/src/patch/patches/mod.rs @@ -49,5 +49,6 @@ generate_patchable_config!( apply_patch -> bool, undo_backspace -> bool, win32_exclude_orphan_events -> bool, + win32_keyboard_layout_cache_interval -> i64, keyboard_layout -> Option );