summaryrefslogtreecommitdiff
path: root/cwmcc/root_props.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-13 07:18:28 +0000
committerDana Jansens <danakj@orodu.net>2003-04-13 07:18:28 +0000
commit5cf61ee02354c1c9f80c11f3796afc4b948055d6 (patch)
tree5530ecca55e11cc74e57db07d750447c7107f8ed /cwmcc/root_props.c
parentfb1696659672386bcfc0f753b67f9eeda74e93b9 (diff)
move the openbox engine into librender and the kernel. the theme is loaded and stored inside librender. the frame is decorated and managed inside the kernel.
Diffstat (limited to 'cwmcc/root_props.c')
-rw-r--r--cwmcc/root_props.c22
1 files changed, 10 insertions, 12 deletions
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 <string.h>
-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;
}
}