aewl
diff event.c @ 10:703255003abb
changed how manage client works
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Tue, 11 Jul 2006 13:02:22 +0200 |
parents | d567f430a81d |
children | ea9c08ec4b48 |
line diff
1.1 --- a/event.c Tue Jul 11 12:52:57 2006 +0200 1.2 +++ b/event.c Tue Jul 11 13:02:22 2006 +0200 1.3 @@ -159,12 +159,8 @@ 1.4 return; 1.5 } 1.6 1.7 - /*if(!client_of_win(ev->window))*/ 1.8 - /*manage(create_client(ev->window, &wa));*/ 1.9 - XMapRaised(dpy, ev->window); 1.10 - XMoveResizeWindow(dpy, ev->window, rect.x, rect.y, rect.width, rect.height - barrect.height); 1.11 - XSetInputFocus(dpy, ev->window, RevertToPointerRoot, CurrentTime); 1.12 - XFlush(dpy); 1.13 + if(!getclient(ev->window)) 1.14 + manage(ev->window, &wa); 1.15 } 1.16 1.17 static void 1.18 @@ -185,11 +181,9 @@ 1.19 static void 1.20 unmapnotify(XEvent *e) 1.21 { 1.22 -#if 0 1.23 Client *c; 1.24 XUnmapEvent *ev = &e->xunmap; 1.25 1.26 - if((c = client_of_win(ev->window))) 1.27 - destroy_client(c); 1.28 -#endif 1.29 + if((c = getclient(ev->window))) 1.30 + unmanage(c); 1.31 }