]> Dogcows Code - chaz/openbox/blobdiff - openbox/prop.c
indenting
[chaz/openbox] / openbox / prop.c
index 9e436550d656d20dda45c7fa93183a337477f9d0..25495ef44cae6366f46c7f345145c6270a124c6e 100644 (file)
@@ -150,7 +150,7 @@ void prop_startup()
     CREATE(esetrootid, "ESETROOT_PMAP_ID");
 
     CREATE(openbox_pid, "_OPENBOX_PID");
-    CREATE(openbox_premax, "_OPENBOX_PREMAX");
+    CREATE(ob_wm_state_undecorated, "_OB_WM_STATE_UNDECORATED");
 }
 
 #include <X11/Xutil.h>
@@ -289,12 +289,16 @@ gboolean prop_get_string_locale(Window win, Atom prop, char **ret)
 {
     char **list;
     int nstr;
+    char *s;
 
     if (get_stringlist(win, prop, &list, &nstr) && nstr) {
-        *ret = g_convert(list[0], strlen(list[0]), "UTF-8", "ISO-8859-1",
-                         NULL, NULL, NULL);
+        s = g_convert(list[0], strlen(list[0]), "UTF-8", "ISO-8859-1",
+                      NULL, NULL, NULL);
         XFreeStringList(list);
-        if (*ret) return TRUE;
+        if (s) {
+            *ret = s;
+            return TRUE;
+        }
     }
     return FALSE;
 }
This page took 0.023776 seconds and 4 git commands to generate.