Skip to content

Commit

Permalink
Change "xkb-config" to "xkb_config" in remaining place
Browse files Browse the repository at this point in the history
It seems these two lines were omitted in
#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 #285 (though
it will also be necessary to edit "xkb_config", rather than the old
file.
  • Loading branch information
ids1024 committed Jan 23, 2024
1 parent aac2879 commit fb95e6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,8 @@ fn update_input(state: &mut State) {
fn config_changed(config: cosmic_config::Config, keys: Vec<String>, state: &mut State) {
for key in &keys {
match key.as_str() {
"xkb-config" => {
let value = get_config::<XkbConfig>(&config, "xkb-config");
"xkb_config" => {
let value = get_config::<XkbConfig>(&config, "xkb_config");
for seat in state.common.seats().cloned().collect::<Vec<_>>().iter() {
if let Some(keyboard) = seat.get_keyboard() {
if let Err(err) = keyboard.set_xkb_config(state, xkb_config_to_wl(&value)) {
Expand Down

0 comments on commit fb95e6d

Please sign in to comment.