equal
deleted
inserted
replaced
1 #include <stdio.h> |
|
2 /* |
1 /* |
3 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com> |
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com> |
4 * See LICENSE file for license details. |
3 * See LICENSE file for license details. |
5 */ |
4 */ |
6 #include "dwm.h" |
5 #include "dwm.h" |
152 Client *c; |
151 Client *c; |
153 XConfigureRequestEvent *ev = &e->xconfigurerequest; |
152 XConfigureRequestEvent *ev = &e->xconfigurerequest; |
154 XEvent synev; |
153 XEvent synev; |
155 XWindowChanges wc; |
154 XWindowChanges wc; |
156 |
155 |
157 fputs("configurerequest\n", stderr); |
|
158 if((c = getclient(ev->window))) { |
156 if((c = getclient(ev->window))) { |
159 c->ismax = False; |
157 c->ismax = False; |
160 gravitate(c, True); |
158 gravitate(c, True); |
161 if(ev->value_mask & CWX) |
159 if(ev->value_mask & CWX) |
162 c->x = ev->x; |
160 c->x = ev->x; |
209 static void |
207 static void |
210 enternotify(XEvent *e) { |
208 enternotify(XEvent *e) { |
211 Client *c; |
209 Client *c; |
212 XCrossingEvent *ev = &e->xcrossing; |
210 XCrossingEvent *ev = &e->xcrossing; |
213 |
211 |
214 fputs("enternotify\n", stderr); |
|
215 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) |
212 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) |
216 return; |
213 return; |
217 |
214 |
218 if(((c = getclient(ev->window)) || (c = getctitle(ev->window))) && isvisible(c)) |
215 if(((c = getclient(ev->window)) || (c = getctitle(ev->window))) && isvisible(c)) |
219 focus(c); |
216 focus(c); |
297 propertynotify(XEvent *e) { |
294 propertynotify(XEvent *e) { |
298 Client *c; |
295 Client *c; |
299 Window trans; |
296 Window trans; |
300 XPropertyEvent *ev = &e->xproperty; |
297 XPropertyEvent *ev = &e->xproperty; |
301 |
298 |
302 fputs("propertynotify\n", stderr); |
|
303 if(ev->state == PropertyDelete) |
299 if(ev->state == PropertyDelete) |
304 return; /* ignore */ |
300 return; /* ignore */ |
305 |
301 |
306 if((c = getclient(ev->window))) { |
302 if((c = getclient(ev->window))) { |
307 if(ev->atom == wmatom[WMProtocols]) { |
303 if(ev->atom == wmatom[WMProtocols]) { |