After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 559562 - Remove more trap/XSync around XKB initlization
Remove more trap/XSync around XKB initlization
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: plugins
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2008-11-06 07:35 UTC by Behdad Esfahbod
Modified: 2008-11-06 19:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove XSync after XkbGetMap as that function is synchronous according to docs (986 bytes, patch)
2008-11-06 18:24 UTC, Behdad Esfahbod
committed Details | Review

Description Behdad Esfahbod 2008-11-06 07:35:57 UTC
two more places
Comment 1 Jens Granseuer 2008-11-06 17:35:39 UTC
2008-11-06  Jens Granseuer  <...>

        * plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c: (xkb_enabled),
        (gsd_a11y_keyboard_manager_start): remove unnecessary X error traps
        (bug #559562)
Comment 2 Behdad Esfahbod 2008-11-06 18:19:40 UTC
I also had common/ in mind:

diff --git a/plugins/common/gsd-keygrab.c b/plugins/common/gsd-keygrab.c
index 3778053..cdb7605 100644
--- a/plugins/common/gsd-keygrab.c
+++ b/plugins/common/gsd-keygrab.c
@@ -169,7 +169,6 @@ have_xkb (Display *dpy)
 #ifdef HAVE_X11_EXTENSIONS_XKB_H
                int opcode, error_base, major, minor, xkb_event_base;

-               gdk_error_trap_push ();
                have_xkb = XkbQueryExtension (dpy,
                                              &opcode,
                                              &xkb_event_base,
@@ -177,7 +176,6 @@ have_xkb (Display *dpy)
                                              &major,
                                              &minor)
                        && XkbUseExtension (dpy, &major, &minor);
-               gdk_error_trap_pop ();
 #else
                have_xkb = 0;
 #endif
Comment 3 Jens Granseuer 2008-11-06 18:22:16 UTC
Go ahead.
Comment 4 Behdad Esfahbod 2008-11-06 18:24:15 UTC
Created attachment 122136 [details] [review]
Remove XSync after XkbGetMap as that function is synchronous according to docs
Comment 5 Behdad Esfahbod 2008-11-06 19:40:31 UTC
2008-11-06  Behdad Esfahbod  <behdad@gnome.org>

        * plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c
        (get_xkb_desc_rec):
        * plugins/common/gsd-keygrab.c (have_xkb):
        Remove more unnecessary X error traps and synchs (bug #559562)