X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=tools%2Fkdetrayproxy%2Fkdetrayproxy.c;h=13d9952a13b1ed510f3d0456393b3b532ac66c44;hb=ada2eb8fe506d1e55cf49953e570f7270c4dd930;hp=31a4d97488de9e75ff11ba75095d124b62fe240a;hpb=759565a70e9bdd9bb842533f1c01df792d0bd1a4;p=chaz%2Fopenbox diff --git a/tools/kdetrayproxy/kdetrayproxy.c b/tools/kdetrayproxy/kdetrayproxy.c index 31a4d974..13d9952a 100644 --- a/tools/kdetrayproxy/kdetrayproxy.c +++ b/tools/kdetrayproxy/kdetrayproxy.c @@ -5,6 +5,7 @@ #include #include #include +#include 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); }