aboutsummaryrefslogtreecommitdiff
path: root/src/keyboard-x11.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-06-22 21:42:43 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-09-01 12:24:46 +0200
commita8a2962376b5c106af481c17035a89a14bdfc3c8 (patch)
tree58ff7e3018b2eb7eb5529a9fc0b97df60c7c61ea /src/keyboard-x11.c
parent9c26d5983e94e7d70a77359c0b8ceeeb926085b1 (diff)
downloadayatana-indicator-keyboard-a8a2962376b5c106af481c17035a89a14bdfc3c8.tar.gz
ayatana-indicator-keyboard-a8a2962376b5c106af481c17035a89a14bdfc3c8.tar.bz2
ayatana-indicator-keyboard-a8a2962376b5c106af481c17035a89a14bdfc3c8.zip
src/keyboard*: Remember nLayout and nLayoutOSK separately.
Diffstat (limited to 'src/keyboard-x11.c')
-rw-r--r--src/keyboard-x11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keyboard-x11.c b/src/keyboard-x11.c
index 89e78517..75dabd6d 100644
--- a/src/keyboard-x11.c
+++ b/src/keyboard-x11.c
@@ -42,6 +42,7 @@ struct _KeyboardPrivate
GHashTable *lLayouts;
Display *pDisplay;
guint nLayout;
+ guint nLayoutOSK;
gint nXkbEventType;
XklConfigRec *pConfigRec;
GSList *lLayoutRec;
@@ -385,7 +386,7 @@ guint keyboard_GetNumLayouts(Keyboard *pKeyboard, gboolean bOSK)
return nLayouts;
}
-guint keyboard_GetLayoutIndex (Keyboard *pKeyboard)
+guint keyboard_GetLayoutIndex (Keyboard *pKeyboard, gboolean bOSK)
{
return pKeyboard->pPrivate->nLayout;
}