From fb95e6d9e5ed9afe33b927e8dac6bc2920307f35 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Tue, 23 Jan 2024 14:54:55 -0800 Subject: [PATCH] Change "xkb-config" to "xkb_config" in remaining place It seems these two lines were omitted in https://github.com/pop-os/cosmic-comp/pull/254, so it was reading the "xkb_config" settings at startup, then watching "xkb-config". The other settings seem to be consistent. This should fix https://github.com/pop-os/cosmic-comp/issues/285 (though it will also be necessary to edit "xkb_config", rather than the old file. --- src/config/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/mod.rs b/src/config/mod.rs index a81ae6fd..3bfda4bb 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -515,8 +515,8 @@ fn update_input(state: &mut State) { fn config_changed(config: cosmic_config::Config, keys: Vec, state: &mut State) { for key in &keys { match key.as_str() { - "xkb-config" => { - let value = get_config::(&config, "xkb-config"); + "xkb_config" => { + let value = get_config::(&config, "xkb_config"); for seat in state.common.seats().cloned().collect::>().iter() { if let Some(keyboard) = seat.get_keyboard() { if let Err(err) = keyboard.set_xkb_config(state, xkb_config_to_wl(&value)) {