summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-10-06 11:50:15 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-10-06 11:50:15 +0200
commit6651dd7fd9e8e95cfc6c472f1adfeff41735d798 (patch)
tree2ba87a8d0df487298c1507de1ec4b26867e0dd19 /event.c
parentyet another small fix and simplification of dotile (diff)
downloaddwm-6651dd7fd9e8e95cfc6c472f1adfeff41735d798.tar.gz
dwm-6651dd7fd9e8e95cfc6c472f1adfeff41735d798.zip
code polishing, removed unnecessary newlines
Diffstat (limited to '')
-rw-r--r--event.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/event.c b/event.c
index eab9b12..e959917 100644
--- a/event.c
+++ b/event.c
@@ -1,5 +1,4 @@
1/* 1/* (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details. 2 * See LICENSE file for license details.
4 */ 3 */
5#include "dwm.h" 4#include "dwm.h"
@@ -64,7 +63,7 @@ resizemouse(Client *c) {
64 ocx = c->x; 63 ocx = c->x;
65 ocy = c->y; 64 ocy = c->y;
66 if(XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync, 65 if(XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
67 None, cursor[CurResize], CurrentTime) != GrabSuccess) 66 None, cursor[CurResize], CurrentTime) != GrabSuccess)
68 return; 67 return;
69 c->ismax = False; 68 c->ismax = False;
70 XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w, c->h); 69 XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w, c->h);
@@ -211,7 +210,6 @@ enternotify(XEvent *e) {
211 210
212 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) 211 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
213 return; 212 return;
214
215 if(((c = getclient(ev->window)) || (c = getctitle(ev->window))) && isvisible(c)) 213 if(((c = getclient(ev->window)) || (c = getctitle(ev->window))) && isvisible(c))
216 focus(c); 214 focus(c);
217 else if(ev->window == root) { 215 else if(ev->window == root) {
@@ -279,13 +277,11 @@ maprequest(XEvent *e) {
279 277
280 if(!XGetWindowAttributes(dpy, ev->window, &wa)) 278 if(!XGetWindowAttributes(dpy, ev->window, &wa))
281 return; 279 return;
282
283 if(wa.override_redirect) { 280 if(wa.override_redirect) {
284 XSelectInput(dpy, ev->window, 281 XSelectInput(dpy, ev->window,
285 (StructureNotifyMask | PropertyChangeMask)); 282 (StructureNotifyMask | PropertyChangeMask));
286 return; 283 return;
287 } 284 }
288
289 if(!getclient(ev->window)) 285 if(!getclient(ev->window))
290 manage(ev->window, &wa); 286 manage(ev->window, &wa);
291} 287}
@@ -298,7 +294,6 @@ propertynotify(XEvent *e) {
298 294
299 if(ev->state == PropertyDelete) 295 if(ev->state == PropertyDelete)
300 return; /* ignore */ 296 return; /* ignore */
301
302 if((c = getclient(ev->window))) { 297 if((c = getclient(ev->window))) {
303 if(ev->atom == wmatom[WMProtocols]) { 298 if(ev->atom == wmatom[WMProtocols]) {
304 c->proto = getproto(c->win); 299 c->proto = getproto(c->win);