]> Dogcows Code - chaz/openbox/blobdiff - tools/kdetrayproxy/kdetrayproxy.c
missing sys/time.h
[chaz/openbox] / tools / kdetrayproxy / kdetrayproxy.c
index 31a4d97488de9e75ff11ba75095d124b62fe240a..13d9952a13b1ed510f3d0456393b3b532ac66c44 100644 (file)
@@ -5,6 +5,7 @@
 #include <string.h>
 #include <sys/select.h>
 #include <unistd.h>
+#include <sys/time.h>
 
 typedef struct IList {
     Window win;
@@ -180,7 +181,8 @@ void updatehint()
         wins = malloc(sizeof(int) * n);
         for (it = list, i = 0; it; it = it->next, ++i)
             wins[i] = it->win;
-    }
+    } else
+        wins = NULL;
     XChangeProperty(display, root, roothint, XA_WINDOW, 32, PropModeReplace,
                     (unsigned char*) wins, n);
 }
This page took 0.019722 seconds and 4 git commands to generate.