Introduction
Introduction Statistics Contact Development Disclaimer Help
tadded wild-card handling for tags - dwm - [fork] customized build of dwm, the …
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 71681c21a594260604779b96f46d51c82af11a03
parent 704781875cde5412bcb8859f3c5961664f62ced8
Author: Anselm R Garbe <[email protected]>
Date: Thu, 15 May 2008 10:47:26 +0100
added wild-card handling for tags
Diffstat:
M dwm.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/dwm.c b/dwm.c
t@@ -240,7 +240,7 @@ Window root, barwin;
void
applyrules(Client *c) {
- unsigned int i;
+ unsigned int i, j;
Bool matched = False;
Rule *r;
XClassHint ch = { 0 };
t@@ -254,7 +254,11 @@ applyrules(Client *c) {
&& (!r->instance || (ch.res_name && strstr(ch.res_name, r->ins…
c->isfloating = r->isfloating;
if(r->tag) {
- c->tags[idxoftag(r->tag)] = True;
+ if(r->tag[0] == '*' && r->tag[1] == 0)
+ for(j = 0; j < LENGTH(tags); i++)
+ c->tags[j] = True;
+ else
+ c->tags[idxoftag(r->tag)] = True;
matched = True;
}
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.