dwm-meillo

diff event.c @ 690:399f08187c27

removed drawclient and drawall (they performed useless operations/consumed useless cpu cycles)
author Anselm R. Garbe <arg@suckless.org>
date Mon, 15 Jan 2007 12:04:25 +0100
parents a76799907854
children 8d3720e06c89
line diff
     1.1 --- a/event.c	Sun Jan 14 22:37:34 2007 +0100
     1.2 +++ b/event.c	Mon Jan 15 12:04:25 2007 +0100
     1.3 @@ -235,7 +235,6 @@
     1.4  	else if(ev->window == root) {
     1.5  		issel = True;
     1.6  		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
     1.7 -		drawall();
     1.8  	}
     1.9  }
    1.10  
    1.11 @@ -272,10 +271,8 @@
    1.12  leavenotify(XEvent *e) {
    1.13  	XCrossingEvent *ev = &e->xcrossing;
    1.14  
    1.15 -	if((ev->window == root) && !ev->same_screen) {
    1.16 +	if((ev->window == root) && !ev->same_screen)
    1.17  		issel = False;
    1.18 -		drawall();
    1.19 -	}
    1.20  }
    1.21  
    1.22  static void
    1.23 @@ -329,7 +326,8 @@
    1.24  		}
    1.25  		if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
    1.26  			updatetitle(c);
    1.27 -			drawclient(c);
    1.28 +			if(c == sel)
    1.29 +				drawstatus();
    1.30  		}
    1.31  	}
    1.32  }