dwm-meillo

changeset 142:9b9deafa0508

committed a patch which fixes the hints of Jukka
author arg@10ksloc.org
date Tue, 01 Aug 2006 11:49:19 +0200
parents 32cd156749d1
children 36cabfe408cd
files client.c draw.c dwm.h tag.c
diffstat 4 files changed, 14 insertions(+), 40 deletions(-) [+]
line diff
     1.1 --- a/client.c	Fri Jul 21 21:15:39 2006 +0200
     1.2 +++ b/client.c	Tue Aug 01 11:49:19 2006 +0200
     1.3 @@ -73,8 +73,8 @@
     1.4  	if(sel->ismax)
     1.5  		togglemax(NULL);
     1.6  
     1.7 -	if(!(c = getnext(sel->next, tsel)))
     1.8 -		c = getnext(clients, tsel);
     1.9 +	if(!(c = getnext(sel->next)))
    1.10 +		c = getnext(clients);
    1.11  	if(c) {
    1.12  		higher(c);
    1.13  		focus(c);
    1.14 @@ -260,36 +260,10 @@
    1.15  	arrange(NULL);
    1.16  
    1.17  	/* mapping the window now prevents flicker */
    1.18 -	if(c->tags[tsel]) {
    1.19 -		XMapRaised(dpy, c->win);
    1.20 -		XMapRaised(dpy, c->title);
    1.21 +	XMapRaised(dpy, c->win);
    1.22 +	XMapRaised(dpy, c->title);
    1.23 +	if(c->tags[tsel])
    1.24  		focus(c);
    1.25 -	}
    1.26 -	else {
    1.27 -		XMapRaised(dpy, c->win);
    1.28 -		XMapRaised(dpy, c->title);
    1.29 -
    1.30 -	}
    1.31 -}
    1.32 -
    1.33 -void
    1.34 -pop(Client *c)
    1.35 -{
    1.36 -	Client **l;
    1.37 -
    1.38 -	for(l = &clients; *l && *l != c; l = &(*l)->next);
    1.39 -	if(c->prev)
    1.40 -		c->prev->next = c->next;
    1.41 -	if(c->next)
    1.42 -		c->next->prev = c->prev;
    1.43 -	*l = c->next;
    1.44 -
    1.45 -	c->prev = NULL;
    1.46 -	if(clients)
    1.47 -		clients->prev = c;
    1.48 -	c->next = clients;
    1.49 -	clients = c;
    1.50 -	arrange(NULL);
    1.51  }
    1.52  
    1.53  void
    1.54 @@ -457,7 +431,7 @@
    1.55  		c->next->prev = c->prev;
    1.56  	*l = c->next;
    1.57  	if(sel == c) {
    1.58 -		sel = getnext(c->next, tsel);
    1.59 +		sel = getnext(c->next);
    1.60  		if(!sel)
    1.61  			sel = getprev(c->prev);
    1.62  		if(!sel)
    1.63 @@ -481,8 +455,8 @@
    1.64  	if(!sel)
    1.65  		return;
    1.66  
    1.67 -	if(sel == getnext(clients, tsel) && sel->next)  {
    1.68 -		if((c = getnext(sel->next, tsel)))
    1.69 +	if(sel == getnext(clients) && sel->next)  {
    1.70 +		if((c = getnext(sel->next)))
    1.71  			sel = c;
    1.72  	}
    1.73  
     2.1 --- a/draw.c	Fri Jul 21 21:15:39 2006 +0200
     2.2 +++ b/draw.c	Tue Aug 01 11:49:19 2006 +0200
     2.3 @@ -99,7 +99,7 @@
     2.4  {
     2.5  	Client *c;
     2.6  
     2.7 -	for(c = clients; c; c = getnext(c->next, tsel))
     2.8 +	for(c = clients; c; c = getnext(c->next))
     2.9  		drawtitle(c);
    2.10  	drawstatus();
    2.11  }
     3.1 --- a/dwm.h	Fri Jul 21 21:15:39 2006 +0200
     3.2 +++ b/dwm.h	Tue Aug 01 11:49:19 2006 +0200
     3.3 @@ -133,7 +133,7 @@
     3.4  extern void appendtag(Arg *arg);
     3.5  extern void dofloat(Arg *arg);
     3.6  extern void dotile(Arg *arg);
     3.7 -extern Client *getnext(Client *c, unsigned int t);
     3.8 +extern Client *getnext(Client *c);
     3.9  extern Client *getprev(Client *c);
    3.10  extern void replacetag(Arg *arg);
    3.11  extern void settags(Client *c);
     4.1 --- a/tag.c	Fri Jul 21 21:15:39 2006 +0200
     4.2 +++ b/tag.c	Tue Aug 01 11:49:19 2006 +0200
     4.3 @@ -63,7 +63,7 @@
     4.4  			ban(c);
     4.5  	}
     4.6  	if(sel && !sel->tags[tsel]) {
     4.7 -		if((sel = getnext(clients, tsel))) {
     4.8 +		if((sel = getnext(clients))) {
     4.9  			higher(sel);
    4.10  			focus(sel);
    4.11  		}
    4.12 @@ -126,7 +126,7 @@
    4.13  			ban(c);
    4.14  	}
    4.15  	if(!sel || (sel && !sel->tags[tsel])) {
    4.16 -		if((sel = getnext(clients, tsel))) {
    4.17 +		if((sel = getnext(clients))) {
    4.18  			higher(sel);
    4.19  			focus(sel);
    4.20  		}
    4.21 @@ -135,9 +135,9 @@
    4.22  }
    4.23  
    4.24  Client *
    4.25 -getnext(Client *c, unsigned int t)
    4.26 +getnext(Client *c)
    4.27  {
    4.28 -	for(; c && !c->tags[t]; c = c->next);
    4.29 +	for(; c && !c->tags[tsel]; c = c->next);
    4.30  	return c;
    4.31  }
    4.32