https://bugs.kde.org/show_bug.cgi?id=485362

--- Comment #4 from Nate Graham <n...@kde.org> ---
Git commit c75d26ff98fc40004923e4e0f9bb441c3b970ec3 by Nate Graham, on behalf
of Bojidar Marinov.
Committed on 03/06/2025 at 14:55.
Pushed by ngraham into branch 'master'.

keyboard_layout: use KConfigWatcher to listen for config changes

Currently, kwin uses a bespoke `org.kde.keyboard.reloadConfig` DBus
signal to reload the keyboard configuration. However, when automating
keyboard layout configuration changes, this ends up harming usability
a lot, requiring users to do [e.g.](https://askubuntu.com/a/1510142):
```bash
kwriteconfig6 --file kxkbrc --group Layout --key LayoutList en,de
dbus-send --session --type=signal --dest=org.kde.keyboard /Layouts
org.kde.keyboard.reloadConfig
```

With this commit, keyboard layouts use `KConfigWatcher`, to instead
allow for the much simpler:
```bash
kwriteconfig6 --file kxkbrc --group Layout --key LayoutList en,de --notify
```

M  +24   -24   autotests/integration/keyboard_layout_test.cpp
M  +1    -0    autotests/integration/kwin_wayland_test.cpp
M  +9    -6    src/keyboard_layout.cpp
M  +4    -1    src/keyboard_layout.h

https://invent.kde.org/plasma/kwin/-/commit/c75d26ff98fc40004923e4e0f9bb441c3b970ec3

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to