diff options
| author | Marius Gripsgard <marius@ubports.com> | 2026-06-03 12:48:29 +0200 |
|---|---|---|
| committer | Marius Gripsgard <marius@ubports.com> | 2026-06-03 13:08:42 +0200 |
| commit | 89a3d2306f0d3be98479d2e1708cc1f1a5f42097 (patch) | |
| tree | 95e7a5de3a9d1d7ce5817b34695dddd12497d762 | |
| parent | aa4f9c31d6fc5316b363f0f91e39d1468f33fbdb (diff) | |
| download | ayatana-indicator-keyboard-personal/mariogrip/fix-sections-on-hw-keyboard-change.tar.gz ayatana-indicator-keyboard-personal/mariogrip/fix-sections-on-hw-keyboard-change.tar.bz2 ayatana-indicator-keyboard-personal/mariogrip/fix-sections-on-hw-keyboard-change.zip | |
Rebuild display and settings sections on hardware keyboard state changepersonal/mariogrip/fix-sections-on-hw-keyboard-change
onConfigChanged only rebuilt SECTION_LAYOUTS, leaving "Show Current
Layout" and "Keyboard Settings" stale when a keyboard was connected
or disconnected at runtime.
| -rw-r--r-- | src/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index 123308c9..8eecd18e 100644 --- a/src/service.c +++ b/src/service.c @@ -422,7 +422,7 @@ static void onLayoutChanged(Keyboard *pKeyboard, gpointer pData) static void onConfigChanged(Keyboard *pKeyboard, gpointer pData) { IndicatorKeyboardService *self = INDICATOR_KEYBOARD_SERVICE(pData); - rebuildNow(self, SECTION_LAYOUTS); + rebuildNow(self, SECTION_LAYOUTS | SECTION_DISPLAY | SECTION_SETTINGS); } static void onLayoutSelected(GSimpleAction *pAction, GVariant *pVariant, gpointer pData) |
