[Xfce4-commits] <xfce4-settings:master> Also check for NoSuchExtension when testing XI version.

Jérôme Guelfucci noreply at xfce.org
Sat Feb 5 23:38:01 CET 2011


Updating branch refs/heads/master
         to 01aa823b9fa7e2ef920f3a72533090993ad8f1b7 (commit)
       from 91d68f64b4707c8e23fe78aed17234ee6c77c9e4 (commit)

commit 01aa823b9fa7e2ef920f3a72533090993ad8f1b7
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Thu Feb 3 18:02:16 2011 +0100

    Also check for NoSuchExtension when testing XI version.

 dialogs/mouse-settings/main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dialogs/mouse-settings/main.c b/dialogs/mouse-settings/main.c
index 306a954..b00fc72 100644
--- a/dialogs/mouse-settings/main.c
+++ b/dialogs/mouse-settings/main.c
@@ -1223,7 +1223,8 @@ main (gint argc, gchar **argv)
 
     /* check for Xi */
     version = XGetExtensionVersion (GDK_DISPLAY (), INAME);
-    if (version == NULL || !version->present)
+    if (version == NULL || ((long) version) == NoSuchExtension
+        || !version->present)
     {
         g_critical ("XI is not present.");
         return EXIT_FAILURE;



More information about the Xfce4-commits mailing list