aewl
diff event.c @ 532:651f2c868b31
code polishing, removed unnecessary newlines
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Fri, 06 Oct 2006 11:50:15 +0200 |
parents | 451f19d48845 |
children | a5567a0d3011 |
line diff
1.1 --- a/event.c Fri Oct 06 11:37:12 2006 +0200 1.2 +++ b/event.c Fri Oct 06 11:50:15 2006 +0200 1.3 @@ -1,5 +1,4 @@ 1.4 -/* 1.5 - * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com> 1.6 +/* (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com> 1.7 * See LICENSE file for license details. 1.8 */ 1.9 #include "dwm.h" 1.10 @@ -64,7 +63,7 @@ 1.11 ocx = c->x; 1.12 ocy = c->y; 1.13 if(XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync, 1.14 - None, cursor[CurResize], CurrentTime) != GrabSuccess) 1.15 + None, cursor[CurResize], CurrentTime) != GrabSuccess) 1.16 return; 1.17 c->ismax = False; 1.18 XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w, c->h); 1.19 @@ -211,7 +210,6 @@ 1.20 1.21 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) 1.22 return; 1.23 - 1.24 if(((c = getclient(ev->window)) || (c = getctitle(ev->window))) && isvisible(c)) 1.25 focus(c); 1.26 else if(ev->window == root) { 1.27 @@ -279,13 +277,11 @@ 1.28 1.29 if(!XGetWindowAttributes(dpy, ev->window, &wa)) 1.30 return; 1.31 - 1.32 if(wa.override_redirect) { 1.33 XSelectInput(dpy, ev->window, 1.34 (StructureNotifyMask | PropertyChangeMask)); 1.35 return; 1.36 } 1.37 - 1.38 if(!getclient(ev->window)) 1.39 manage(ev->window, &wa); 1.40 } 1.41 @@ -298,7 +294,6 @@ 1.42 1.43 if(ev->state == PropertyDelete) 1.44 return; /* ignore */ 1.45 - 1.46 if((c = getclient(ev->window))) { 1.47 if(ev->atom == wmatom[WMProtocols]) { 1.48 c->proto = getproto(c->win);