X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=cwmcc%2Froot_props.h;h=7690287b02cfc50ef8af000e564b9149fc439034;hb=bccb90b01da9d3f3b483e690444ebfbca914aa02;hp=0bc5fef711961fe0dbb3b290ba721284042cf30b;hpb=6b95bf33363f73d198da2f515f2f9f6bef2278c8;p=chaz%2Fopenbox diff --git a/cwmcc/root_props.h b/cwmcc/root_props.h index 0bc5fef7..7690287b 100644 --- a/cwmcc/root_props.h +++ b/cwmcc/root_props.h @@ -1,6 +1,57 @@ -#ifndef __cwmcc_root_props_h -#define __cwmcc_root_props_h +/*#ifndef __cwmcc_root_props_h + #define __cwmcc_root_props_h*/ -void cwmcc_root_get_supported(Window win, Atom **atoms); +#include +#include -#endif +void cwmcc_root_get_supported(Window win, Atom **atoms, gulong *num); + +void cwmcc_root_get_client_list(Window win, Window **windows, gulong *num); + +void cwmcc_root_get_client_list_stacking(Window win, Window **windows, + gulong *num); + +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, int **x, int **y, int **w, int **h); + +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*/