]> git.decadent.org.uk Git - ion3.git/blobdiff - ioncore/property.c
Imported Upstream version 20090110
[ion3.git] / ioncore / property.c
index d142fad2da4bc90bc774124e0bac4ab220d1469f..5a36627095fb580b1bb5e45c293a07b769fff2d9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * ion/ioncore/property.c
  *
- * Copyright (c) Tuomo Valkonen 1999-2007
+ * Copyright (c) Tuomo Valkonen 1999-2009
  *
  * See the included file LICENSE for details.
  */
@@ -191,7 +191,7 @@ char **xwindow_get_text_property(Window win, Atom a, int *nret)
 
     if(!ioncore_g.use_mb){
         Status st=XTextPropertyToStringList(&prop, &list, &n);
-        ok=(st==0);
+        ok=(st!=0);
     }else{
         int st=XmbTextPropertyToTextList(ioncore_g.dpy, &prop, &list, &n);
         ok=(st>=0);