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 */
24 Atom wm_colormap_windows;
27 Atom wm_delete_window;
41 /* root window properties */
44 Atom net_client_list_stacking;
45 Atom net_number_of_desktops;
46 Atom net_desktop_geometry;
47 Atom net_desktop_viewport;
48 Atom net_current_desktop;
49 Atom net_desktop_names;
50 Atom net_active_window;
52 Atom net_supporting_wm_check;
53 Atom net_desktop_layout;
54 Atom net_showing_desktop;
55 /* root window messages */
56 Atom net_close_window;
57 Atom net_wm_moveresize;
58 Atom net_moveresize_window;
59 /* application window properties */
61 Atom net_wm_visible_name;
62 Atom net_wm_icon_name;
63 Atom net_wm_visible_icon_name;
65 Atom net_wm_window_type;
68 Atom net_wm_strut_partial;
70 /* Atom net_wm_pid; */
71 Atom net_wm_allowed_actions;
72 /* application protocols */
73 /* Atom Atom net_wm_ping; */
75 Atom net_wm_window_type_desktop;
76 Atom net_wm_window_type_dock;
77 Atom net_wm_window_type_toolbar;
78 Atom net_wm_window_type_menu;
79 Atom net_wm_window_type_utility;
80 Atom net_wm_window_type_splash;
81 Atom net_wm_window_type_dialog;
82 Atom net_wm_window_type_normal;
84 Atom net_wm_moveresize_size_topleft;
85 Atom net_wm_moveresize_size_top;
86 Atom net_wm_moveresize_size_topright;
87 Atom net_wm_moveresize_size_right;
88 Atom net_wm_moveresize_size_bottomright;
89 Atom net_wm_moveresize_size_bottom;
90 Atom net_wm_moveresize_size_bottomleft;
91 Atom net_wm_moveresize_size_left;
92 Atom net_wm_moveresize_move;
93 Atom net_wm_moveresize_size_keyboard;
94 Atom net_wm_moveresize_move_keyboard;
96 Atom net_wm_action_move;
97 Atom net_wm_action_resize;
98 Atom net_wm_action_minimize;
99 Atom net_wm_action_shade;
100 Atom net_wm_action_stick;
101 Atom net_wm_action_maximize_horz;
102 Atom net_wm_action_maximize_vert;
103 Atom net_wm_action_fullscreen;
104 Atom net_wm_action_change_desktop;
105 Atom net_wm_action_close;
107 Atom net_wm_state_modal;
108 Atom net_wm_state_sticky;
109 Atom net_wm_state_maximized_vert;
110 Atom net_wm_state_maximized_horz;
111 Atom net_wm_state_shaded;
112 Atom net_wm_state_skip_taskbar;
113 Atom net_wm_state_skip_pager;
114 Atom net_wm_state_hidden;
115 Atom net_wm_state_fullscreen;
116 Atom net_wm_state_above;
117 Atom net_wm_state_below;
119 Atom net_wm_state_add;
120 Atom net_wm_state_remove;
121 Atom net_wm_state_toggle;
123 Atom net_wm_orientation_horz;
124 Atom net_wm_orientation_vert;
126 Atom net_wm_topright;
127 Atom net_wm_bottomright;
128 Atom net_wm_bottomleft;
132 Atom kde_net_system_tray_windows;
133 Atom kde_net_wm_system_tray_window_for;
134 Atom kde_net_wm_window_type_override;
141 /* Openbox specific atoms */
150 gboolean prop_get32(Window win, Atom prop, Atom type, guint32 *ret);
151 gboolean prop_get_array32(Window win, Atom prop, Atom type, guint32 **ret,
153 gboolean prop_get_string_locale(Window win, Atom prop, char **ret);
154 gboolean prop_get_string_utf8(Window win, Atom prop, char **ret);
155 gboolean prop_get_strings_locale(Window win, Atom prop, char ***ret);
156 gboolean prop_get_strings_utf8(Window win, Atom prop, char ***ret);
158 void prop_set32(Window win, Atom prop, Atom type, guint32 val);
159 void prop_set_array32(Window win, Atom prop, Atom type, guint32 *val,
161 void prop_set_string_utf8(Window win, Atom prop, char *val);
162 void prop_set_strings_utf8(Window win, Atom prop, char **strs);
164 void prop_erase(Window win, Atom prop);
166 void prop_message(Window about, Atom messagetype, long data0, long data1,
167 long data2, long data3, long mask);
169 #define PROP_GET32(win, prop, type, ret) \
170 (prop_get32(win, prop_atoms.prop, prop_atoms.type, ret))
171 #define PROP_GETA32(win, prop, type, ret, nret) \
172 (prop_get_array32(win, prop_atoms.prop, prop_atoms.type, ret, \
174 #define PROP_GETS(win, prop, type, ret) \
175 (prop_get_string_##type(win, prop_atoms.prop, ret))
176 #define PROP_GETSS(win, prop, type, ret) \
177 (prop_get_strings_##type(win, prop_atoms.prop, ret))
179 #define PROP_SET32(win, prop, type, val) \
180 prop_set32(win, prop_atoms.prop, prop_atoms.type, val)
181 #define PROP_SETA32(win, prop, type, val, num) \
182 prop_set_array32(win, prop_atoms.prop, prop_atoms.type, val, num)
183 #define PROP_SETS(win, prop, val) \
184 prop_set_string_utf8(win, prop_atoms.prop, val)
185 #define PROP_SETSS(win, prop, strs) \
186 prop_set_strings_utf8(win, prop_atoms.prop, strs)
188 #define PROP_ERASE(win, prop) prop_erase(win, prop_atoms.prop)
190 #define PROP_MSG(about, msgtype, data0, data1, data2, data3) \
191 (prop_message(about, prop_atoms.msgtype, data0, data1, data2, data3, \
192 SubstructureNotifyMask | SubstructureRedirectMask))