summaryrefslogtreecommitdiff
path: root/cwmcc/root_props.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-12 02:03:28 +0000
committerDana Jansens <danakj@orodu.net>2003-04-12 02:03:28 +0000
commit7b03041409912d38cb9f98988449fb9be641f572 (patch)
tree196628dcce72c269999045c2d031bce64eb96632 /cwmcc/root_props.h
parent9b63f238aea70f385e49e4582ef2e67f7fe1714f (diff)
add most of the root window props get functions
Diffstat (limited to 'cwmcc/root_props.h')
-rw-r--r--cwmcc/root_props.h56
1 files changed, 53 insertions, 3 deletions
diff --git a/cwmcc/root_props.h b/cwmcc/root_props.h
index 0bc5fef7..ca43f136 100644
--- a/cwmcc/root_props.h
+++ b/cwmcc/root_props.h
@@ -1,6 +1,56 @@
-#ifndef __cwmcc_root_props_h
-#define __cwmcc_root_props_h
+/*#ifndef __cwmcc_root_props_h
+ #define __cwmcc_root_props_h*/
+
+#include <X11/Xlib.h>
+#include <glib.h>
void cwmcc_root_get_supported(Window win, Atom **atoms);
-#endif
+void cwmcc_root_get_client_list(Window win, Window **windows);
+
+void cwmcc_root_get_client_list_stacking(Window win, Window **windows);
+
+void cwmcc_root_get_number_of_desktops(Window win, gulong *desktops);
+
+void cwmcc_root_get_desktop_geometry(Window win, gulong *w, gulong *h);
+
+void cwmcc_root_get_desktop_viewport(Window win, gulong *x, gulong *y);
+
+void cwmcc_root_get_current_desktop(Window win, gulong *desktop);
+
+void cwmcc_root_get_desktop_names(Window win, char ***names);
+
+void cwmcc_root_get_active_window(Window win, Window *window);
+
+/*void cwmcc_root_get_workarea(Window win, Rect a)*/
+
+void cwmcc_root_get_supporting_wm_check(Window win, Window *window);
+
+/*! Orientation of the desktops */
+enum Cwmcc_Orientation {
+ Cwmcc_Orientation_Horz = 0,
+ Cwmcc_Orientation_Vert = 1
+};
+
+enum Cwmcc_Corner {
+ Cwmcc_Corner_TopLeft = 0,
+ Cwmcc_Corner_TopRight = 1,
+ Cwmcc_Corner_BottomRight = 2,
+ Cwmcc_Corner_BottomLeft = 3
+};
+
+struct Cwmcc_DesktopLayout {
+ enum Cwmcc_Orientation orientation;
+ enum Cwmcc_Corner start_corner;
+ guint rows;
+ guint columns;
+};
+
+void cwmcc_root_get_desktop_layout(Window win,
+ struct Cwmcc_DesktopLayout *layout);
+
+void cwmcc_root_get_showing_desktop(Window win, gboolean *showing);
+
+void cwmcc_root_get_openbox_pid(Window win, gulong *pid);
+
+/*#endif*/