fix the ultimate bug when restarting awesome, client misdisplayed
[awesome.git] / tag.h
bloba95a1353b2b10f99e3c3f7a5fc1610e2a5d39373
1 /*
2 * tag.h - tag management header
3 *
4 * Copyright © 2007 Julien Danjou <julien@danjou.info>
5 *
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_TAG_H
23 #define AWESOME_TAG_H
25 #include <regex.h>
26 #include "client.h"
28 /** Check if a client is tiled */
29 #define IS_TILED(client, screen, tags, ntags) (client && !client->isfloating && isvisible(client, screen, tags, ntags))
31 void compileregs(Rule *, int); /* initialize regexps of rules defined in config.h */
32 Bool isvisible(Client *, int, Bool *, int);
33 void applyrules(Client * c, awesome_config *); /* applies rules to c */
34 void uicb_tag(Display *, DC *, awesome_config *, const char *); /* tags sel with arg's index */
35 void uicb_togglefloating(Display *, DC *, awesome_config *, const char *); /* toggles sel between floating/tiled state */
36 void uicb_toggletag(Display *, DC *, awesome_config *, const char *); /* toggles sel tags with arg's index */
37 void uicb_toggleview(Display *, DC *, awesome_config *, const char *); /* toggles the tag with arg's index (in)visible */
38 void uicb_view(Display *, DC *, awesome_config *, const char *); /* views the tag with arg's index */
39 void uicb_viewprevtags(Display *, DC *, awesome_config *, const char *);
40 void uicb_tag_viewnext(Display *, DC *, awesome_config *, const char *); /* view only tag just after the first selected */
41 void uicb_tag_viewprev(Display *, DC *, awesome_config *, const char *); /* view only tag just before the first selected */
43 typedef struct
45 regex_t *propregex;
46 regex_t *tagregex;
47 } Regs;
49 #endif