10 /*! The atoms on the X server which this class will cache */
11 typedef struct Atoms {
13 Atom cardinal; /*!< The atom which represents the Cardinal data type */
14 Atom window; /*!< The atom which represents window ids */
15 Atom pixmap; /*!< The atom which represents pixmap ids */
16 Atom atom; /*!< The atom which represents atom values */
17 Atom string; /*!< The atom which represents ascii strings */
18 Atom utf8; /*!< The atom which represents utf8-encoded strings */
21 Atom wm_colormap_windows;
24 Atom wm_delete_window;
35 /* root window properties */
38 Atom net_client_list_stacking;
39 Atom net_number_of_desktops;
40 Atom net_desktop_geometry;
41 Atom net_desktop_viewport;
42 Atom net_current_desktop;
43 Atom net_desktop_names;
44 Atom net_active_window;
46 Atom net_supporting_wm_check;
47 Atom net_desktop_layout;
48 Atom net_showing_desktop;
49 /* root window messages */
50 Atom net_close_window;
51 Atom net_wm_moveresize;
52 /* application window properties */
54 Atom net_wm_visible_name;
55 Atom net_wm_icon_name;
56 Atom net_wm_visible_icon_name;
58 Atom net_wm_window_type;
62 /* Atom net_wm_pid; */
63 Atom net_wm_allowed_actions;
64 /* application protocols */
65 /* Atom Atom net_wm_ping; */
67 Atom net_wm_window_type_desktop;
68 Atom net_wm_window_type_dock;
69 Atom net_wm_window_type_toolbar;
70 Atom net_wm_window_type_menu;
71 Atom net_wm_window_type_utility;
72 Atom net_wm_window_type_splash;
73 Atom net_wm_window_type_dialog;
74 Atom net_wm_window_type_normal;
76 Atom net_wm_moveresize_size_topleft;
77 Atom net_wm_moveresize_size_topright;
78 Atom net_wm_moveresize_size_bottomleft;
79 Atom net_wm_moveresize_size_bottomright;
80 Atom net_wm_moveresize_move;
82 Atom net_wm_action_move;
83 Atom net_wm_action_resize;
84 Atom net_wm_action_minimize;
85 Atom net_wm_action_shade;
86 Atom net_wm_action_stick;
87 Atom net_wm_action_maximize_horz;
88 Atom net_wm_action_maximize_vert;
89 Atom net_wm_action_fullscreen;
90 Atom net_wm_action_change_desktop;
91 Atom net_wm_action_close;
93 Atom net_wm_state_modal;
94 Atom net_wm_state_sticky;
95 Atom net_wm_state_maximized_vert;
96 Atom net_wm_state_maximized_horz;
97 Atom net_wm_state_shaded;
98 Atom net_wm_state_skip_taskbar;
99 Atom net_wm_state_skip_pager;
100 Atom net_wm_state_hidden;
101 Atom net_wm_state_fullscreen;
102 Atom net_wm_state_above;
103 Atom net_wm_state_below;
105 Atom net_wm_state_add;
106 Atom net_wm_state_remove;
107 Atom net_wm_state_toggle;
109 Atom net_wm_orientation_horz;
110 Atom net_wm_orientation_vert;
112 Atom net_wm_topright;
113 Atom net_wm_bottomright;
114 Atom net_wm_bottomleft;
118 Atom kde_net_system_tray_windows;
119 Atom kde_net_wm_system_tray_window_for;
120 Atom kde_net_wm_window_type_override;
127 /* Openbox specific atoms */
136 gboolean prop_get32(Window win, Atom prop, Atom type, guint32 *ret);
137 gboolean prop_get_array32(Window win, Atom prop, Atom type, guint32 **ret,
139 gboolean prop_get_string_locale(Window win, Atom prop, char **ret);
140 gboolean prop_get_string_utf8(Window win, Atom prop, char **ret);
141 gboolean prop_get_strings_locale(Window win, Atom prop, char ***ret);
142 gboolean prop_get_strings_utf8(Window win, Atom prop, char ***ret);
144 void prop_set32(Window win, Atom prop, Atom type, guint32 val);
145 void prop_set_array32(Window win, Atom prop, Atom type, guint32 *val,
147 void prop_set_string_utf8(Window win, Atom prop, char *val);
148 void prop_set_strings_utf8(Window win, Atom prop, char **strs);
150 void prop_erase(Window win, Atom prop);
152 void prop_message(Window about, Atom messagetype, long data0, long data1,
153 long data2, long data3);
155 #define PROP_GET32(win, prop, type, ret) \
156 (prop_get32(win, prop_atoms.prop, prop_atoms.type, ret))
157 #define PROP_GETA32(win, prop, type, ret, nret) \
158 (prop_get_array32(win, prop_atoms.prop, prop_atoms.type, ret, \
160 #define PROP_GETS(win, prop, type, ret) \
161 (prop_get_string_##type(win, prop_atoms.prop, ret))
162 #define PROP_GETSS(win, prop, type, ret) \
163 (prop_get_strings_##type(win, prop_atoms.prop, ret))
165 #define PROP_SET32(win, prop, type, val) \
166 prop_set32(win, prop_atoms.prop, prop_atoms.type, val)
167 #define PROP_SETA32(win, prop, type, val, num) \
168 prop_set_array32(win, prop_atoms.prop, prop_atoms.type, val, num)
169 #define PROP_SETS(win, prop, val) \
170 prop_set_string_utf8(win, prop_atoms.prop, val)
171 #define PROP_SETSS(win, prop, strs) \
172 prop_set_strings_utf8(win, prop_atoms.prop, strs)
174 #define PROP_ERASE(win, prop) prop_erase(win, prop_atoms.prop)
176 #define PROP_MSG(about, msgtype, data0, data1, data2, data3) \
177 (prop_message(about, prop_atoms.msgtype, data0, data1, data2, data3))