comparison 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
comparison
equal deleted inserted replaced
689:cbec08a54a15 690:399f08187c27
233 if((c = getclient(ev->window)) && isvisible(c)) 233 if((c = getclient(ev->window)) && isvisible(c))
234 focus(c); 234 focus(c);
235 else if(ev->window == root) { 235 else if(ev->window == root) {
236 issel = True; 236 issel = True;
237 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); 237 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
238 drawall();
239 } 238 }
240 } 239 }
241 240
242 static void 241 static void
243 expose(XEvent *e) { 242 expose(XEvent *e) {
270 269
271 static void 270 static void
272 leavenotify(XEvent *e) { 271 leavenotify(XEvent *e) {
273 XCrossingEvent *ev = &e->xcrossing; 272 XCrossingEvent *ev = &e->xcrossing;
274 273
275 if((ev->window == root) && !ev->same_screen) { 274 if((ev->window == root) && !ev->same_screen)
276 issel = False; 275 issel = False;
277 drawall();
278 }
279 } 276 }
280 277
281 static void 278 static void
282 mappingnotify(XEvent *e) { 279 mappingnotify(XEvent *e) {
283 XMappingEvent *ev = &e->xmapping; 280 XMappingEvent *ev = &e->xmapping;
327 updatesizehints(c); 324 updatesizehints(c);
328 break; 325 break;
329 } 326 }
330 if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { 327 if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
331 updatetitle(c); 328 updatetitle(c);
332 drawclient(c); 329 if(c == sel)
330 drawstatus();
333 } 331 }
334 } 332 }
335 } 333 }
336 334
337 static void 335 static void