diff options
author | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-11 13:02:22 +0200 |
---|---|---|
committer | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-11 13:02:22 +0200 |
commit | 005362043d8b0bbf856f301c231d4f10c519b8c4 (patch) | |
tree | 3901197bc7ec4ad48613683c34516c2fa8c6542e /event.c | |
parent | 16c67f32d62849792c8e6d4fdec22a1896f9c279 (diff) |
changed how manage client works
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -159,12 +159,8 @@ maprequest(XEvent *e) return; } - /*if(!client_of_win(ev->window))*/ - /*manage(create_client(ev->window, &wa));*/ - XMapRaised(dpy, ev->window); - XMoveResizeWindow(dpy, ev->window, rect.x, rect.y, rect.width, rect.height - barrect.height); - XSetInputFocus(dpy, ev->window, RevertToPointerRoot, CurrentTime); - XFlush(dpy); + if(!getclient(ev->window)) + manage(ev->window, &wa); } static void @@ -185,11 +181,9 @@ propertynotify(XEvent *e) static void unmapnotify(XEvent *e) { -#if 0 Client *c; XUnmapEvent *ev = &e->xunmap; - if((c = client_of_win(ev->window))) - destroy_client(c); -#endif + if((c = getclient(ev->window))) + unmanage(c); } |