43 blackbox_change_attributes
,
46 // blackbox-protocol atoms (wm -> client)
47 blackbox_structure_messages
,
48 blackbox_notify_startup
,
49 blackbox_notify_window_add
,
50 blackbox_notify_window_del
,
51 blackbox_notify_window_focus
,
52 blackbox_notify_current_workspace
,
53 blackbox_notify_workspace_count
,
54 blackbox_notify_window_raise
,
55 blackbox_notify_window_lower
,
56 // blackbox-protocol atoms (client -> wm)
57 blackbox_change_workspace
,
58 blackbox_change_window_focus
,
59 blackbox_cycle_window_focus
,
61 openbox_show_root_menu
,
62 openbox_show_workspace_menu
,
65 // root window properties
68 net_client_list_stacking
,
69 net_number_of_desktops
,
76 net_supporting_wm_check
,
78 // root window messages
81 // application window properties
86 net_wm_visible_icon_name
,
91 // net_wm_icon_geometry,
94 // net_wm_handled_icons,
95 net_wm_allowed_actions
,
96 // application protocols
99 net_wm_window_type_desktop
,
100 net_wm_window_type_dock
,
101 net_wm_window_type_toolbar
,
102 net_wm_window_type_menu
,
103 net_wm_window_type_utility
,
104 net_wm_window_type_splash
,
105 net_wm_window_type_dialog
,
106 net_wm_window_type_normal
,
108 net_wm_moveresize_size_topleft
,
109 net_wm_moveresize_size_topright
,
110 net_wm_moveresize_size_bottomleft
,
111 net_wm_moveresize_size_bottomright
,
112 net_wm_moveresize_move
,
115 net_wm_action_resize
,
117 net_wm_action_maximize_horz
,
118 net_wm_action_maximize_vert
,
119 net_wm_action_change_desktop
,
123 net_wm_state_maximized_vert
,
124 net_wm_state_maximized_horz
,
126 net_wm_state_skip_taskbar
,
127 net_wm_state_skip_pager
,
129 net_wm_state_fullscreen
,
131 kde_net_system_tray_windows
,
132 kde_net_wm_system_tray_window_for
,
133 kde_net_wm_window_type_override
,
135 // constant for how many atoms exist in the enumerator
146 typedef std::vector
<Window
> SupportWindows
;
149 // windows used to specify support for NETWM
150 SupportWindows _support_windows
;
151 Atom _atoms
[NUM_ATOMS
];
153 Atom
create(const char *name
) const;
155 void setValue(Window win
, Atom atom
, Atom type
, unsigned char *data
,
156 int size
, int nelements
, bool append
) const;
157 bool getValue(Window win
, Atom atom
, Atom type
,
158 unsigned long &nelements
, unsigned char **value
,
162 XAtom(const XAtom
&);
163 XAtom
& operator=(const XAtom
&);
166 typedef std::vector
<std::string
> StringVect
;
171 // setup support on a screen, each screen should call this once in its
173 void setSupported(const ScreenInfo
*screen
);
175 void setValue(Window win
, Atoms atom
, Atoms type
, unsigned long value
) const;
176 void setValue(Window win
, Atoms atom
, Atoms type
,
177 unsigned long value
[], int elements
) const;
178 void setValue(Window win
, Atoms atom
, StringType type
,
179 const std::string
&value
) const;
180 void setValue(Window win
, Atoms atom
, StringType type
,
181 const StringVect
&strings
) const;
183 // the 'value' is allocated inside the function and
184 // delete [] value needs to be called when you are done with it.
185 // the 'value' array returned is null terminated, and has 'nelements'
186 // elements in it plus the null.
187 // nelements must be set to the maximum number of elements to read from
189 bool getValue(Window win
, Atoms atom
, Atoms type
,
190 unsigned long &nelements
, unsigned long **value
) const;
191 bool getValue(Window win
, Atoms atom
, Atoms type
, unsigned long &value
) const;
192 bool getValue(Window win
, Atoms atom
, StringType type
,
193 std::string
&value
) const;
194 bool getValue(Window win
, Atoms atom
, StringType type
,
195 unsigned long &nelements
, StringVect
&strings
) const;
197 void eraseValue(Window win
, Atoms atom
) const;
199 // sends a client message a window
200 void sendClientMessage(Window target
, Atoms type
, Window about
,
201 long data
= 0, long data1
= 0, long data2
= 0,
202 long data3
= 0, long data4
= 0) const;
204 // temporary function!! remove when not used in blackbox.hh anymore!!
205 inline Atom
getAtom(Atoms a
)
206 { assert(a
>= 0 && a
< NUM_ATOMS
); Atom ret
= _atoms
[a
];
207 assert(ret
!= 0); return ret
; }