JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
applied yiyus applyrules() patch
authora@null <unknown>
Fri, 19 Dec 2008 23:41:31 +0000 (23:41 +0000)
committera@null <unknown>
Fri, 19 Dec 2008 23:41:31 +0000 (23:41 +0000)
dwm.c

diff --git a/dwm.c b/dwm.c
index 489ba80..5d2d541 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -270,7 +270,7 @@ applyrules(Client *c) {
                        && (!r->class || (ch.res_class && strstr(ch.res_class, r->class)))
                        && (!r->instance || (ch.res_name && strstr(ch.res_name, r->instance)))) {
                                c->isfloating = r->isfloating;
-                               c->tags |= r->tags & TAGMASK;
+                               c->tags |= r->tags & TAGMASK ? r->tags & TAGMASK : tagset[seltags]; 
                        }
                }
                if(ch.res_class)