Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
hmm I doubt the usefulness of storing this information...
[dwm.git]
/
tag.c
diff --git
a/tag.c
b/tag.c
index
1dd542b
..
685308a
100644
(file)
--- a/
tag.c
+++ b/
tag.c
@@
-3,8
+3,6
@@
#include <regex.h>
#include <stdio.h>
#include <stdlib.h>
#include <regex.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
-#include <X11/Xatom.h>
#include <X11/Xutil.h>
/* static */
#include <X11/Xutil.h>
/* static */
@@
-118,7
+116,7
@@
tag(const char *arg) {
i = idxoftag(arg);
if(i >= 0 && i < ntags)
sel->tags[i] = True;
i = idxoftag(arg);
if(i >= 0 && i < ntags)
sel->tags[i] = True;
- save
config
(sel);
+ save
props
(sel);
arrange();
}
arrange();
}
@@
-129,7
+127,7
@@
togglefloating(const char *arg) {
sel->isfloating = !sel->isfloating;
if(sel->isfloating) {
resize(sel, sel->x, sel->y, sel->w, sel->h, True);
sel->isfloating = !sel->isfloating;
if(sel->isfloating) {
resize(sel, sel->x, sel->y, sel->w, sel->h, True);
- save
config
(sel);
+ save
props
(sel);
}
arrange();
}
}
arrange();
}
@@
-145,7
+143,7
@@
toggletag(const char *arg) {
for(j = 0; j < ntags && !sel->tags[j]; j++);
if(j == ntags)
sel->tags[i] = True;
for(j = 0; j < ntags && !sel->tags[j]; j++);
if(j == ntags)
sel->tags[i] = True;
- save
config
(sel);
+ save
props
(sel);
arrange();
}
arrange();
}
@@
-158,6
+156,7
@@
toggleview(const char *arg) {
for(j = 0; j < ntags && !seltags[j]; j++);
if(j == ntags)
seltags[i] = True; /* cannot toggle last view */
for(j = 0; j < ntags && !seltags[j]; j++);
if(j == ntags)
seltags[i] = True; /* cannot toggle last view */
+ savedwmprops();
arrange();
}
arrange();
}
@@
-170,5
+169,6
@@
view(const char *arg) {
i = idxoftag(arg);
if(i >= 0 && i < ntags)
seltags[i] = True;
i = idxoftag(arg);
if(i >= 0 && i < ntags)
seltags[i] = True;
+ savedwmprops();
arrange();
}
arrange();
}