[gnome-settings-daemon/wip/input-sources: 1/5] keyboard: Remove needless call to XkbUseExtension



commit 2fc6b3cce07d8559084f2d470e150e7c798e5b53
Author: Rui Matos <tiagomatos gmail com>
Date:   Mon Apr 16 17:26:30 2012 +0200

    keyboard: Remove needless call to XkbUseExtension
    
    XkbQueryExtension does everything we need here.

 plugins/keyboard/gsd-keyboard-manager.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plugins/keyboard/gsd-keyboard-manager.c b/plugins/keyboard/gsd-keyboard-manager.c
index 88dc43f..4fa38d2 100644
--- a/plugins/keyboard/gsd-keyboard-manager.c
+++ b/plugins/keyboard/gsd-keyboard-manager.c
@@ -486,8 +486,7 @@ check_xkb_extension (GsdKeyboardManager *manager)
                                       &manager->priv->xkb_event_base,
                                       &error_base,
                                       &major,
-                                      &minor)
-                && XkbUseExtension (dpy, &major, &minor);
+                                      &minor);
 
         return have_xkb;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]