libgnomekbd/libgnomekbd-avoid-coredump-on-ibus-engines.patch
Dominique Leuenberger 53b76055a8 Accepting request 882720 from home:qzhao:branches:GNOME:Factory
Add libgnomekbd-avoid-coredump-on-ibus-engines.patch: avoid libgnomekbd crash when working with ibus(bnc#1160963, glgo#GNOME/libgnomekbd!6).

OBS-URL: https://build.opensuse.org/request/show/882720
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libgnomekbd?expand=0&rev=83
2021-04-12 12:11:20 +00:00

13 lines
653 B
Diff

diff -Nura libgnomekbd-3.26.1/libgnomekbd/gkbd-keyboard-display.c libgnomekbd-3.26.1_new/libgnomekbd/gkbd-keyboard-display.c
--- libgnomekbd-3.26.1/libgnomekbd/gkbd-keyboard-display.c 2019-02-07 06:18:56.000000000 +0800
+++ libgnomekbd-3.26.1_new/libgnomekbd/gkbd-keyboard-display.c 2021-04-02 19:56:19.587280314 +0800
@@ -81,7 +81,7 @@
dlg = gkbd_keyboard_drawing_dialog_new ();
registry = xkl_config_registry_get_instance (engine);
xkl_config_registry_load (registry, TRUE);
- if (layout != NULL) {
+ if (layout != NULL && strcmp(layout, "default")) {
gkbd_keyboard_drawing_dialog_set_layout (dlg, registry,
layout);
} else