]> git.pld-linux.org Git - packages/xfce4-settings.git/blob - 02-Xfsettingsd-Check-for-NoSuchExtension-bug-9390.patch
c18b667d117285dcac6fa7e0ccb215b78f65dce2
[packages/xfce4-settings.git] / 02-Xfsettingsd-Check-for-NoSuchExtension-bug-9390.patch
1 From 1d62ea7fb76ce14c87c61dd4a41d6ccc5b9c6095 Mon Sep 17 00:00:00 2001
2 From: Lionel Le Folgoc <lionel@lefolgoc.net>
3 Date: Sun, 28 Oct 2012 17:11:13 +0100
4 Subject: [PATCH] Xfsettingsd: Check for NoSuchExtension (bug #9390).
5
6 ---
7  xfsettingsd/pointers.c | 3 ++-
8  1 file changed, 2 insertions(+), 1 deletion(-)
9
10 diff --git a/xfsettingsd/pointers.c b/xfsettingsd/pointers.c
11 index a060051..e7192e7 100644
12 --- a/xfsettingsd/pointers.c
13 +++ b/xfsettingsd/pointers.c
14 @@ -129,7 +129,8 @@ xfce_pointers_helper_init (XfcePointersHelper *helper)
15      version = XGetExtensionVersion (xdisplay, INAME);
16  
17      /* check for Xi */
18 -    if (version == NULL || !version->present)
19 +    if (version == NULL || ((long) version) == NoSuchExtension
20 +        || !version->present)
21      {
22          g_critical ("XI is not present.");
23      }
24 -- 
25 1.8.3.1
26
This page took 0.154116 seconds and 2 git commands to generate.