all repos — dwm @ 157ea539a2d1926ee3a9d2fe713eba0b9428f685

my dwm build

applied patch similiar proposed by dave tweed
Anselm R. Garbe arg@10kloc.org
Tue, 29 Aug 2006 17:11:37 +0200
commit

157ea539a2d1926ee3a9d2fe713eba0b9428f685

parent

c3c94c0e0a4da1562b040a17ee670312ad8e65af

1 files changed, 13 insertions(+), 10 deletions(-)

jump to
M tag.ctag.c

@@ -30,6 +30,17 @@

static RReg *rreg = NULL; static unsigned int len = 0; +static void +applytag() +{ + /* asserts sel != NULL */ + settitle(sel); + if(!isvisible(sel)) + arrange(NULL); + else + drawstatus(); +} + /* extern */ Client *

@@ -121,11 +132,7 @@

for(i = 0; i < ntags; i++) sel->tags[i] = False; sel->tags[arg->i] = True; - settitle(sel); - if(!isvisible(sel)) - arrange(NULL); - else - drawstatus(); + applytag(); } void

@@ -140,9 +147,5 @@ sel->tags[arg->i] = !sel->tags[arg->i];

for(i = 0; i < ntags && !sel->tags[i]; i++); if(i == ntags) sel->tags[arg->i] = True; - settitle(sel); - if(!isvisible(sel)) - arrange(NULL); - else - drawstatus(); + applytag(); }