From 1c577e2a12387176e3870d7c5af282f7e6954ced Mon Sep 17 00:00:00 2001 From: Bernhard Miklautz Date: Wed, 24 Aug 2011 09:27:56 +0200 Subject: [PATCH] Changed return value check for XGetWindowProperty XGetWindowProperty return None if the property isn't found. So raise an error is None is returned. Otherwise the property was returned. --- client/X11/xf_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/X11/xf_window.c b/client/X11/xf_window.c index 9a33e534d..c99657e63 100644 --- a/client/X11/xf_window.c +++ b/client/X11/xf_window.c @@ -94,7 +94,7 @@ boolean xf_GetWindowProperty(xfInfo* xfi, Window window, Atom property, int leng property, 0, length, False, AnyPropertyType, &actual_type, &actual_format, nitems, bytes, prop); - if (status != Success) + if (status == None) return False; return True;