gnome-settings-daemon/gnome-settings-daemon-switch-Japanese-default-input-to-mozc.patch
Dominique Leuenberger 761b0821e6 - Only recommend xf86-input-libinput if xorg-x11-server is present:
wayland does not rely on the xf86 drivers.

- Update to version 47.2:
  + Power:
    - Fix possible invalid reads if backlight fails to initialize.
    - Handle broken upower more elegantly.
    - Test warning fixes.
  + Updated translations.

OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-settings-daemon?expand=0&rev=428
2024-11-22 12:20:27 +00:00

18 lines
727 B
Diff

Index: b/plugins/keyboard/gsd-keyboard-manager.c
===================================================================
--- a/plugins/keyboard/gsd-keyboard-manager.c
+++ b/plugins/keyboard/gsd-keyboard-manager.c
@@ -251,7 +251,11 @@ get_sources_from_xkb_config (GsdKeyboard
else
id = g_strdup (layouts[i]);
- g_variant_builder_add (&builder, "(ss)", INPUT_SOURCE_TYPE_XKB, id);
+ if (!g_strcmp0 (id, "jp"))
+ g_variant_builder_add (&builder, "(ss)", INPUT_SOURCE_TYPE_IBUS, "mozc-jp");
+ else
+ g_variant_builder_add (&builder, "(ss)", INPUT_SOURCE_TYPE_XKB, id);
+
g_free (id);
}