Mercurial > aewl
comparison 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 |
comparison
equal
deleted
inserted
replaced
9:d567f430a81d | 10:703255003abb |
---|---|
157 XSelectInput(dpy, ev->window, | 157 XSelectInput(dpy, ev->window, |
158 (StructureNotifyMask | PropertyChangeMask)); | 158 (StructureNotifyMask | PropertyChangeMask)); |
159 return; | 159 return; |
160 } | 160 } |
161 | 161 |
162 /*if(!client_of_win(ev->window))*/ | 162 if(!getclient(ev->window)) |
163 /*manage(create_client(ev->window, &wa));*/ | 163 manage(ev->window, &wa); |
164 XMapRaised(dpy, ev->window); | |
165 XMoveResizeWindow(dpy, ev->window, rect.x, rect.y, rect.width, rect.height - barrect.height); | |
166 XSetInputFocus(dpy, ev->window, RevertToPointerRoot, CurrentTime); | |
167 XFlush(dpy); | |
168 } | 164 } |
169 | 165 |
170 static void | 166 static void |
171 propertynotify(XEvent *e) | 167 propertynotify(XEvent *e) |
172 { | 168 { |
183 } | 179 } |
184 | 180 |
185 static void | 181 static void |
186 unmapnotify(XEvent *e) | 182 unmapnotify(XEvent *e) |
187 { | 183 { |
188 #if 0 | |
189 Client *c; | 184 Client *c; |
190 XUnmapEvent *ev = &e->xunmap; | 185 XUnmapEvent *ev = &e->xunmap; |
191 | 186 |
192 if((c = client_of_win(ev->window))) | 187 if((c = getclient(ev->window))) |
193 destroy_client(c); | 188 unmanage(c); |
194 #endif | |
195 } | 189 } |