X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=cwmcc%2Froot_props.c;h=3ba243c86de13bf9860735df0841bfc11730b13f;hb=bccb90b01da9d3f3b483e690444ebfbca914aa02;hp=52b2b531ce6cc8e05cf113f5226ab950b76b975d;hpb=fd5784c082de724b9ccde01977eac1e27a121201;p=chaz%2Fopenbox diff --git a/cwmcc/root_props.c b/cwmcc/root_props.c index 52b2b531..3ba243c8 100644 --- a/cwmcc/root_props.c +++ b/cwmcc/root_props.c @@ -5,36 +5,34 @@ #include -void cwmcc_root_get_supported(Window win, Atom **atoms) +void cwmcc_root_get_supported(Window win, Atom **atoms, gulong *num) { - gulong num; - if (!cwmcc_prop_get_array32(win, CWMCC_ATOM(root, net_supported), - CWMCC_ATOM(type, atom), atoms, &num)) { + CWMCC_ATOM(type, atom), atoms, num)) { g_warning("Failed to read NET_SUPPORTED from 0x%lx", win); *atoms = NULL; + *num = 0; } } -void cwmcc_root_get_client_list(Window win, Window **windows) +void cwmcc_root_get_client_list(Window win, Window **windows, gulong *num) { - gulong num; - if (!cwmcc_prop_get_array32(win, CWMCC_ATOM(root, net_client_list), - CWMCC_ATOM(type, window), windows, &num)) { + CWMCC_ATOM(type, window), windows, num)) { g_warning("Failed to read NET_CLIENT_LIST from 0x%lx", win); *windows = NULL; + *num = 0; } } -void cwmcc_root_get_client_list_stacking(Window win, Window **windows) +void cwmcc_root_get_client_list_stacking(Window win, Window **windows, + gulong *num) { - gulong num; - if (!cwmcc_prop_get_array32(win,CWMCC_ATOM(root, net_client_list_stacking), - CWMCC_ATOM(type, window), windows, &num)) { + CWMCC_ATOM(type, window), windows, num)) { g_warning("Failed to read NET_CLIENT_LIST_STACKING from 0x%lx", win); *windows = NULL; + *num = 0; } }