Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
removed getnext/getprev, redundant
[dwm.git]
/
tag.c
diff --git
a/tag.c
b/tag.c
index
bc731c9
..
a6db1d5
100644
(file)
--- a/
tag.c
+++ b/
tag.c
@@
-31,18
+31,6
@@
static unsigned int len = 0;
/* extern */
/* extern */
-Client *
-getnext(Client *c) {
- for(; c && !isvisible(c); c = c->next);
- return c;
-}
-
-Client *
-getprev(Client *c) {
- for(; c && !isvisible(c); c = c->prev);
- return c;
-}
-
void
initrregs(void) {
unsigned int i;
void
initrregs(void) {
unsigned int i;
@@
-78,10
+66,9
@@
settags(Client *c, Client *trans) {
Bool matched = trans != NULL;
XClassHint ch = { 0 };
Bool matched = trans != NULL;
XClassHint ch = { 0 };
- if(matched)
{
+ if(matched)
for(i = 0; i < ntags; i++)
c->tags[i] = trans->tags[i];
for(i = 0; i < ntags; i++)
c->tags[i] = trans->tags[i];
- }
else {
XGetClassHint(dpy, c->win, &ch);
snprintf(prop, sizeof prop, "%s:%s:%s",
else {
XGetClassHint(dpy, c->win, &ch);
snprintf(prop, sizeof prop, "%s:%s:%s",