widget: invalidate on visible change
[awesome.git] / client.h
blob5dddf905625a078db5405eb5b0d1e9cdc21c2643
1 /*
2 * client.h - client management header
4 * Copyright © 2007-2008 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_CLIENT_H
23 #define AWESOME_CLIENT_H
25 #include <xcb/xcb_icccm.h>
27 #include "structs.h"
29 bool client_maybevisible(client_t *, int);
30 bool client_isvisible(client_t *, int);
31 client_t * client_getbywin(xcb_window_t);
32 void client_setlayer(client_t *, layer_t);
33 void client_stack(void);
34 void client_raise(client_t *);
35 void client_ban(client_t *);
36 void client_unban(client_t *);
37 void client_manage(xcb_window_t, xcb_get_geometry_reply_t *, int);
38 area_t client_geometry_hints(client_t *, area_t);
39 bool client_resize(client_t *, area_t, bool);
40 void client_unmanage(client_t *);
41 void client_updatewmhints(client_t *);
42 xcb_size_hints_t *client_updatesizehints(client_t *);
43 bool client_updatetitle(client_t *);
44 void client_saveprops(client_t *);
45 void client_kill(client_t *);
46 void client_setfloating(client_t *, bool);
47 void client_setborder(client_t *, int);
49 int luaA_client_newindex(lua_State *);
51 int luaA_client_userdata_new(lua_State *, client_t *);
53 DO_SLIST(client_t, client, client_unref)
55 #endif
56 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80