X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=cwmcc%2Fclient_props.c;h=34ae4ecd9107d8d3f419fefe505bff590dcd81dd;hb=6b95bf33363f73d198da2f515f2f9f6bef2278c8;hp=dc0f4fa43c2e3640bb0cd46da7ca32e8923b568b;hpb=43f01ee9f081c8cb473c3358bbc02f758ab0014b;p=chaz%2Fopenbox diff --git a/cwmcc/client_props.c b/cwmcc/client_props.c index dc0f4fa4..34ae4ecd 100644 --- a/cwmcc/client_props.c +++ b/cwmcc/client_props.c @@ -15,6 +15,7 @@ void cwmcc_client_get_protocols(Window win, Atom **protocols) if (!prop_get_array32(win, CWMCC_ATOM(client, wm_protocols), CWMCC_ATOM(type, atom), protocols, &num)) { + g_warning("Failed to read WM_PROTOCOLS from 0x%lx", win); *protocols = NULL; } } @@ -72,7 +73,7 @@ void cwmcc_client_get_icon_name(Window win, char **name) } } -void cwmcc_client_icon_set_name(Window win, char *name) +void cwmcc_client_set_icon_name(Window win, char *name) { XChangeProperty(cwmcc_display, win, CWMCC_ATOM(client, net_wm_icon_name), CWMCC_ATOM(type, utf8), 32, PropModeReplace, @@ -212,7 +213,7 @@ void cwmcc_client_get_strut(Window win, int *l, int *t, int *r, int *b) *t = data[2]; *b = data[3]; } - g_free(l); + g_free(data); } static void convert_pixmap_to_icon(Pixmap pix, Pixmap mask,