diff options
author | okan | 2014-01-30 22:17:22 +0000 |
---|---|---|
committer | okan | 2014-01-30 22:17:22 +0000 |
commit | edcee6832d3520912024707777453cb30f809e6b (patch) | |
tree | a1972a645b81ddc6f50c8adb445f1bef5eb122a8 /calmwm.h | |
parent | 898be2f9c2c9502ebd3b95e65042473b0ddca25e (diff) | |
download | cwm-edcee6832d3520912024707777453cb30f809e6b.tar.gz |
Switch ignoreq to winname struct since it's basically the same thing;
removes limit on name matching.
Diffstat (limited to 'calmwm.h')
-rw-r--r-- | calmwm.h | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: calmwm.h,v 1.253 2014/01/30 15:41:11 okan Exp $ + * $OpenBSD: calmwm.h,v 1.254 2014/01/30 22:17:22 okan Exp $ */ #ifndef _CALMWM_H_ @@ -140,6 +140,7 @@ struct winname { char *name; }; TAILQ_HEAD(winname_q, winname); +TAILQ_HEAD(ignore_q, winname); struct client_ctx { TAILQ_ENTRY(client_ctx) entry; @@ -199,13 +200,6 @@ struct client_ctx { TAILQ_HEAD(client_ctx_q, client_ctx); TAILQ_HEAD(cycle_entry_q, client_ctx); -struct winmatch { - TAILQ_ENTRY(winmatch) entry; -#define WIN_MAXTITLELEN 256 - char title[WIN_MAXTITLELEN]; -}; -TAILQ_HEAD(winmatch_q, winmatch); - struct group_ctx { TAILQ_ENTRY(group_ctx) entry; struct client_ctx_q clients; @@ -288,7 +282,7 @@ struct conf { struct keybinding_q keybindingq; struct mousebinding_q mousebindingq; struct autogroupwin_q autogroupq; - struct winmatch_q ignoreq; + struct ignore_q ignoreq; struct cmd_q cmdq; #define CONF_STICKY_GROUPS 0x0001 int flags; @@ -515,7 +509,7 @@ void conf_cursor(struct conf *); void conf_grab_kbd(Window); void conf_grab_mouse(Window); void conf_init(struct conf *); -int conf_ignore(struct conf *, const char *); +void conf_ignore(struct conf *, const char *); void conf_screen(struct screen_ctx *); void xev_process(void); |