diff -r 9b2b792dce12 -r d10040d81ef8 dwm.c --- a/dwm.c Wed Dec 17 21:25:32 2008 +0000 +++ b/dwm.c Fri Dec 19 23:41:31 2008 +0000 @@ -270,7 +270,7 @@ && (!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)