cwmcc/root_props.h (raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
/*#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, 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*/ |