Introduction
Introduction Statistics Contact Development Disclaimer Help
tapplied patch similiar proposed by dave tweed - dwm - [fork] customized build …
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 157ea539a2d1926ee3a9d2fe713eba0b9428f685
parent c3c94c0e0a4da1562b040a17ee670312ad8e65af
Author: Anselm R. Garbe <[email protected]>
Date: Tue, 29 Aug 2006 17:11:37 +0200
applied patch similiar proposed by dave tweed
Diffstat:
M tag.c | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/tag.c b/tag.c
t@@ -30,6 +30,17 @@ RULES
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 *
t@@ -121,11 +132,7 @@ tag(Arg *arg)
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
t@@ -140,9 +147,5 @@ toggletag(Arg *arg)
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();
}
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.