equal
deleted
inserted
replaced
216 } |
216 } |
217 |
217 |
218 static void |
218 static void |
219 maprequest(XEvent *e) |
219 maprequest(XEvent *e) |
220 { |
220 { |
221 #if 0 |
|
222 XMapRequestEvent *ev = &e->xmaprequest; |
221 XMapRequestEvent *ev = &e->xmaprequest; |
223 static XWindowAttributes wa; |
222 static XWindowAttributes wa; |
224 |
223 |
225 if(!XGetWindowAttributes(dpy, ev->window, &wa)) |
224 if(!XGetWindowAttributes(dpy, ev->window, &wa)) |
226 return; |
225 return; |
229 XSelectInput(dpy, ev->window, |
228 XSelectInput(dpy, ev->window, |
230 (StructureNotifyMask | PropertyChangeMask)); |
229 (StructureNotifyMask | PropertyChangeMask)); |
231 return; |
230 return; |
232 } |
231 } |
233 |
232 |
234 if(!client_of_win(ev->window)) |
233 /*if(!client_of_win(ev->window))*/ |
235 manage_client(create_client(ev->window, &wa)); |
234 manage(create_client(ev->window, &wa)); |
236 #endif |
|
237 } |
235 } |
238 |
236 |
239 static void |
237 static void |
240 propertynotify(XEvent *e) |
238 propertynotify(XEvent *e) |
241 { |
239 { |