summaryrefslogtreecommitdiffstats
path: root/tag.c
diff options
context:
space:
mode:
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tag.c b/tag.c
index 1dd542b..685308a 100644
--- a/tag.c
+++ b/tag.c
@@ -3,8 +3,6 @@
3#include <regex.h> 3#include <regex.h>
4#include <stdio.h> 4#include <stdio.h>
5#include <stdlib.h> 5#include <stdlib.h>
6#include <string.h>
7#include <X11/Xatom.h>
8#include <X11/Xutil.h> 6#include <X11/Xutil.h>
9 7
10/* static */ 8/* static */
@@ -118,7 +116,7 @@ tag(const char *arg) {
118 i = idxoftag(arg); 116 i = idxoftag(arg);
119 if(i >= 0 && i < ntags) 117 if(i >= 0 && i < ntags)
120 sel->tags[i] = True; 118 sel->tags[i] = True;
121 saveconfig(sel); 119 saveprops(sel);
122 arrange(); 120 arrange();
123} 121}
124 122
@@ -129,7 +127,7 @@ togglefloating(const char *arg) {
129 sel->isfloating = !sel->isfloating; 127 sel->isfloating = !sel->isfloating;
130 if(sel->isfloating) { 128 if(sel->isfloating) {
131 resize(sel, sel->x, sel->y, sel->w, sel->h, True); 129 resize(sel, sel->x, sel->y, sel->w, sel->h, True);
132 saveconfig(sel); 130 saveprops(sel);
133 } 131 }
134 arrange(); 132 arrange();
135} 133}
@@ -145,7 +143,7 @@ toggletag(const char *arg) {
145 for(j = 0; j < ntags && !sel->tags[j]; j++); 143 for(j = 0; j < ntags && !sel->tags[j]; j++);
146 if(j == ntags) 144 if(j == ntags)
147 sel->tags[i] = True; 145 sel->tags[i] = True;
148 saveconfig(sel); 146 saveprops(sel);
149 arrange(); 147 arrange();
150} 148}
151 149
@@ -158,6 +156,7 @@ toggleview(const char *arg) {
158 for(j = 0; j < ntags && !seltags[j]; j++); 156 for(j = 0; j < ntags && !seltags[j]; j++);
159 if(j == ntags) 157 if(j == ntags)
160 seltags[i] = True; /* cannot toggle last view */ 158 seltags[i] = True; /* cannot toggle last view */
159 savedwmprops();
161 arrange(); 160 arrange();
162} 161}
163 162
@@ -170,5 +169,6 @@ view(const char *arg) {
170 i = idxoftag(arg); 169 i = idxoftag(arg);
171 if(i >= 0 && i < ntags) 170 if(i >= 0 && i < ntags)
172 seltags[i] = True; 171 seltags[i] = True;
172 savedwmprops();
173 arrange(); 173 arrange();
174} 174}