diff options
| author | Robert Tari <robert@tari.in> | 2025-05-14 16:22:42 +0200 |
|---|---|---|
| committer | Robert Tari <robert@tari.in> | 2025-05-14 16:24:22 +0200 |
| commit | 17394a6f684b46e9f4bc2ed039515b09971b39d9 (patch) | |
| tree | 1bd33b2fd78e840d878467f990b552a8c6b0f65a /src/keyboard-lomiri.c | |
| parent | 70a3ea2b263a3d9095a9c00b09e2b3086d3f55cc (diff) | |
| download | ayatana-indicator-keyboard-17394a6f684b46e9f4bc2ed039515b09971b39d9.tar.gz ayatana-indicator-keyboard-17394a6f684b46e9f4bc2ed039515b09971b39d9.tar.bz2 ayatana-indicator-keyboard-17394a6f684b46e9f4bc2ed039515b09971b39d9.zip | |
Fix showing current layout on Lomiri
Just like GNOME did, we are switching to tecla here, since gkbd-keyboard-display does not work under Wayland.
fixes https://github.com/AyatanaIndicators/ayatana-indicator-keyboard/issues/76
Diffstat (limited to 'src/keyboard-lomiri.c')
| -rw-r--r-- | src/keyboard-lomiri.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/keyboard-lomiri.c b/src/keyboard-lomiri.c index c00bc55a..bc6b3f93 100644 --- a/src/keyboard-lomiri.c +++ b/src/keyboard-lomiri.c @@ -1,5 +1,5 @@ /* - * Copyright 2021-2024 Robert Tari <robert@tari.in> + * Copyright 2021-2025 Robert Tari <robert@tari.in> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published @@ -179,7 +179,7 @@ guint keyboard_GetLayoutIndex (Keyboard *pKeyboard) return pKeyboard->pPrivate->nLayout; } -void keyboard_GetLayout(Keyboard *pKeyboard, gint nLayout, gchar **pLanguage, gchar **pDescription) +void keyboard_GetLayout(Keyboard *pKeyboard, gint nLayout, gchar **pLanguage, gchar **pDescription, gchar **pId) { if (nLayout == -1) { @@ -199,6 +199,11 @@ void keyboard_GetLayout(Keyboard *pKeyboard, gint nLayout, gchar **pLanguage, gc { *pDescription = g_strdup(pLayout->sDescription); } + + if (pId != NULL) + { + *pId = g_strdup (sLayout); + } } void keyboard_SetLayout(Keyboard *pKeyboard, gint nLayout) |
