change codename
[awesome.git] / property.h
blob32eba3e71ca7c895de7147d4c66ef011c5634fc7
1 /*
2 * property.h - property handlers header
4 * Copyright © 2008-2009 Julien Danjou <julien@danjou.info>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef AWESOME_PROPERTY_H
23 #define AWESOME_PROPERTY_H
25 #include "globalconf.h"
27 #define PROPERTY(funcname) \
28 xcb_get_property_cookie_t property_get_##funcname(client_t *c); \
29 void property_update_##funcname(client_t *c, xcb_get_property_cookie_t cookie)
31 PROPERTY(wm_name);
32 PROPERTY(net_wm_name);
33 PROPERTY(wm_icon_name);
34 PROPERTY(net_wm_icon_name);
35 PROPERTY(wm_client_machine);
36 PROPERTY(wm_window_role);
37 PROPERTY(wm_transient_for);
38 PROPERTY(wm_client_leader);
39 PROPERTY(wm_normal_hints);
40 PROPERTY(wm_hints);
41 PROPERTY(wm_class);
42 PROPERTY(wm_protocols);
43 PROPERTY(net_wm_pid);
44 PROPERTY(net_wm_icon);
46 #undef PROPERTY
48 void property_handle_propertynotify(xcb_property_notify_event_t *ev);
50 #endif
51 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80