aewl

diff key.c @ 74:5370ef170cc9

sanitized names
author Anselm R. Garbe <garbeam@wmii.de>
date Fri, 14 Jul 2006 22:54:09 +0200
parents c2ddb9dbbd10
children
line diff
     1.1 --- a/key.c	Fri Jul 14 22:33:38 2006 +0200
     1.2 +++ b/key.c	Fri Jul 14 22:54:09 2006 +0200
     1.3 @@ -99,8 +99,8 @@
     1.4  	if(!sel)
     1.5  		return;
     1.6  
     1.7 -	if(sel == next(clients) && sel->next)  {
     1.8 -		if((c = next(sel->next)))
     1.9 +	if(sel == getnext(clients) && sel->next)  {
    1.10 +		if((c = getnext(sel->next)))
    1.11  			sel = c;
    1.12  	}
    1.13  
    1.14 @@ -122,7 +122,7 @@
    1.15  	sel->y = sy + bh;
    1.16  	sel->w = sw - 2 * sel->border;
    1.17  	sel->h = sh - 2 * sel->border - bh;
    1.18 -	craise(sel);
    1.19 +	higher(sel);
    1.20  	resize(sel, False);
    1.21  }
    1.22  
    1.23 @@ -157,7 +157,7 @@
    1.24  		return;
    1.25  
    1.26  	if((c = sel->revert && sel->revert->tags[tsel] ? sel->revert : NULL)) {
    1.27 -		craise(c);
    1.28 +		higher(c);
    1.29  		focus(c);
    1.30  	}
    1.31  }
    1.32 @@ -170,10 +170,10 @@
    1.33  	if(!sel)
    1.34  		return;
    1.35  
    1.36 -	if(!(c = next(sel->next)))
    1.37 -		c = next(clients);
    1.38 +	if(!(c = getnext(sel->next)))
    1.39 +		c = getnext(clients);
    1.40  	if(c) {
    1.41 -		craise(c);
    1.42 +		higher(c);
    1.43  		c->revert = sel;
    1.44  		focus(c);
    1.45  	}
    1.46 @@ -185,7 +185,7 @@
    1.47  	if(!sel)
    1.48  		return;
    1.49  	if(sel->proto & WM_PROTOCOL_DELWIN)
    1.50 -		send_message(sel->win, wm_atom[WMProtocols], wm_atom[WMDelete]);
    1.51 +		sendevent(sel->win, wm_atom[WMProtocols], wm_atom[WMDelete]);
    1.52  	else
    1.53  		XKillClient(dpy, sel->win);
    1.54  }