[Xfce4-commits] <xfce4-settings:master> Xfsettingsd: Check for NoSuchExtension (bug #9390).
Nick Schermer
noreply at xfce.org
Sun Oct 28 17:12:01 CET 2012
Updating branch refs/heads/master
to 1d62ea7fb76ce14c87c61dd4a41d6ccc5b9c6095 (commit)
from 5231578eae05bf32e3dc9e05baf38dd3ed974c3c (commit)
commit 1d62ea7fb76ce14c87c61dd4a41d6ccc5b9c6095
Author: Lionel Le Folgoc <lionel at lefolgoc.net>
Date: Sun Oct 28 17:11:13 2012 +0100
Xfsettingsd: Check for NoSuchExtension (bug #9390).
xfsettingsd/pointers.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/xfsettingsd/pointers.c b/xfsettingsd/pointers.c
index a060051..e7192e7 100644
--- a/xfsettingsd/pointers.c
+++ b/xfsettingsd/pointers.c
@@ -129,7 +129,8 @@ xfce_pointers_helper_init (XfcePointersHelper *helper)
version = XGetExtensionVersion (xdisplay, INAME);
/* check for Xi */
- if (version == NULL || !version->present)
+ if (version == NULL || ((long) version) == NoSuchExtension
+ || !version->present)
{
g_critical ("XI is not present.");
}
More information about the Xfce4-commits
mailing list