diff --git a/fix-gdm-layout.patch b/fix-gdm-layout.patch new file mode 100644 index 0000000..1a40e0b --- /dev/null +++ b/fix-gdm-layout.patch @@ -0,0 +1,29 @@ +diff -up gnome-settings-daemon-2.24.0/plugins/keyboard/gsd-keyboard-xkb.c.fix-gdm-layout gnome-settings-daemon-2.24.0/plugins/keyboard/gsd-keyboard-xkb.c +--- gnome-settings-daemon-2.24.0/plugins/keyboard/gsd-keyboard-xkb.c.fix-gdm-layout 2008-09-30 22:56:41.000000000 -0400 ++++ gnome-settings-daemon-2.24.0/plugins/keyboard/gsd-keyboard-xkb.c 2008-09-30 22:58:52.000000000 -0400 +@@ -142,6 +142,7 @@ apply_xkb_settings (void) + { + GConfClient *conf_client; + GkbdKeyboardConfig current_sys_kbd_config; ++ int group_to_activate = -1; + + if (!inited_ok) + return; +@@ -175,7 +176,7 @@ apply_xkb_settings (void) + for (i = 0, l = current_kbd_config.layouts_variants; l; i++, l = l->next) { + char *lv = l->data; + if (strncmp (lv, gdm_keyboard_layout, len) == 0 && (lv[len] == '\0' || lv[len] == '\t')) { +- xkl_engine_lock_group (current_config.engine, i); ++ group_to_activate = i; + break; + } + } +@@ -206,6 +207,8 @@ apply_xkb_settings (void) + xkl_debug (100, + "Actual KBD configuration was not changed: redundant notification\n"); + ++ if (group_to_activate != -1) ++ xkl_engine_lock_group (current_config.engine, group_to_activate); + gkbd_keyboard_config_term (¤t_sys_kbd_config); + } + diff --git a/gnome-settings-daemon.spec b/gnome-settings-daemon.spec index 6a3219a..0494849 100644 --- a/gnome-settings-daemon.spec +++ b/gnome-settings-daemon.spec @@ -1,6 +1,6 @@ Name: gnome-settings-daemon Version: 2.24.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The daemon sharing settings from GNOME to GTK+/KDE applications Group: System Environment/Daemons @@ -38,6 +38,9 @@ Patch7: gnome-settings-daemon-2.23.91-fnf7-cycle.patch # http://bugzilla.gnome.org/show_bug.cgi?id=552857 Patch8: gnome-settings-daemon-2.23.92-fade.patch +# http://bugzilla.gnome.org/show_bug.cgi?id=554525 +Patch9: fix-gdm-layout.patch + %description A daemon to share settings from GNOME to other applications. It also handles global keybindings, as well as a number of desktop-wide settings. @@ -60,6 +63,7 @@ developing applications that use %{name}. %patch6 -p1 -b .drop-sample-cache %patch7 -p1 -b .fnf7-cycle %patch8 -p1 -b .fade +%patch9 -p1 -b .fix-gdm-layout %build aclocal @@ -159,6 +163,9 @@ fi %{_libdir}/pkgconfig/gnome-settings-daemon.pc %changelog +* Tue Sep 30 2008 Matthias Clasen - 2.24.0-3 +- Fix the picking up of the gdm keyboard layout + * Wed Sep 28 2008 Ray Strode - 2.24.0-2 - Don't draw background twice at startup