aewl

diff event.c @ 74:5370ef170cc9

sanitized names
author Anselm R. Garbe <garbeam@wmii.de>
date Fri, 14 Jul 2006 22:54:09 +0200
parents c2ddb9dbbd10
children f08271b7cb20
line diff
     1.1 --- a/event.c	Fri Jul 14 22:33:38 2006 +0200
     1.2 +++ b/event.c	Fri Jul 14 22:54:09 2006 +0200
     1.3 @@ -129,7 +129,7 @@
     1.4  	else if((c = getclient(ev->window))) {
     1.5  		if(arrange == tiling && !c->floating)
     1.6  			return;
     1.7 -		craise(c);
     1.8 +		higher(c);
     1.9  		switch(ev->button) {
    1.10  		default:
    1.11  			break;
    1.12 @@ -225,9 +225,9 @@
    1.13  
    1.14  	if(ev->count == 0) {
    1.15  		if(barwin == ev->window)
    1.16 -			draw_bar();
    1.17 +			drawstatus();
    1.18  		else if((c = gettitle(ev->window)))
    1.19 -			draw_client(c);
    1.20 +			drawtitle(c);
    1.21  	}
    1.22  }
    1.23  
    1.24 @@ -262,7 +262,7 @@
    1.25  
    1.26  	if((c = getclient(ev->window))) {
    1.27  		if(ev->atom == wm_atom[WMProtocols]) {
    1.28 -			c->proto = win_proto(c->win);
    1.29 +			c->proto = proto(c->win);
    1.30  			return;
    1.31  		}
    1.32  		switch (ev->atom) {
    1.33 @@ -273,12 +273,12 @@
    1.34  					arrange(NULL);
    1.35  				break;
    1.36  			case XA_WM_NORMAL_HINTS:
    1.37 -				update_size(c);
    1.38 +				setsize(c);
    1.39  				break;
    1.40  		}
    1.41  		if(ev->atom == XA_WM_NAME || ev->atom == net_atom[NetWMName]) {
    1.42 -			update_name(c);
    1.43 -			draw_client(c);
    1.44 +			settitle(c);
    1.45 +			drawtitle(c);
    1.46  		}
    1.47  	}
    1.48  }