Mercurial > aewl
comparison tag.c @ 384:126e78129f1d
configurenotify remembers max geom now, and restores this if necessary, however it accepts to touch the max size on configurerequest, this shouldn't break fillscreen apps (tested with mplayer)
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Tue, 29 Aug 2006 17:31:55 +0200 |
parents | 2ec9cead84a7 |
children | 6786cd59468f |
comparison
equal
deleted
inserted
replaced
383:2ec9cead84a7 | 384:126e78129f1d |
---|---|
29 | 29 |
30 static RReg *rreg = NULL; | 30 static RReg *rreg = NULL; |
31 static unsigned int len = 0; | 31 static unsigned int len = 0; |
32 | 32 |
33 static void | 33 static void |
34 applytag() | 34 commit() |
35 { | 35 { |
36 /* asserts sel != NULL */ | 36 /* asserts sel != NULL */ |
37 settitle(sel); | 37 settitle(sel); |
38 if(!isvisible(sel)) | 38 if(!isvisible(sel)) |
39 arrange(NULL); | 39 arrange(NULL); |
130 return; | 130 return; |
131 | 131 |
132 for(i = 0; i < ntags; i++) | 132 for(i = 0; i < ntags; i++) |
133 sel->tags[i] = False; | 133 sel->tags[i] = False; |
134 sel->tags[arg->i] = True; | 134 sel->tags[arg->i] = True; |
135 applytag(); | 135 commit(); |
136 } | 136 } |
137 | 137 |
138 void | 138 void |
139 toggletag(Arg *arg) | 139 toggletag(Arg *arg) |
140 { | 140 { |
145 | 145 |
146 sel->tags[arg->i] = !sel->tags[arg->i]; | 146 sel->tags[arg->i] = !sel->tags[arg->i]; |
147 for(i = 0; i < ntags && !sel->tags[i]; i++); | 147 for(i = 0; i < ntags && !sel->tags[i]; i++); |
148 if(i == ntags) | 148 if(i == ntags) |
149 sel->tags[arg->i] = True; | 149 sel->tags[arg->i] = True; |
150 applytag(); | 150 commit(); |
151 } | 151 } |