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.
This commit is contained in:
Bernhard Miklautz 2011-08-24 09:27:56 +02:00
parent e5fb626d75
commit 1c577e2a12
1 changed files with 1 additions and 1 deletions

View File

@ -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;