From a8a2962376b5c106af481c17035a89a14bdfc3c8 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sun, 22 Jun 2025 21:42:43 +0200 Subject: src/keyboard*: Remember nLayout and nLayoutOSK separately. --- src/keyboard-x11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/keyboard-x11.c') 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; } -- cgit v1.2.3