Re: [dwm] more consistent codestyle patch

From: Diego Biurrun <diego_AT_biurrun.de>
Date: Tue, 13 May 2008 16:44:19 +0200

On Tue, May 13, 2008 at 02:05:27PM +0200, Szabolcs Nagy wrote:
> simple modifications (whitespce, line wrapping)

Ummmm...

> --- a/dwm.c Tue May 13 11:27:20 2008 +0100
> +++ b/dwm.c Tue May 13 14:03:20 2008 +0200
> @@ -782,21 +782,21 @@ grabbuttons(Client *c, Bool focused) {
> unsigned int modifiers[] = { MODKEY, MODKEY|LockMask, MODKEY|numlockmask,
> - MODKEY|numlockmask|LockMask} ;
> + MODKEY|numlockmask|LockMask} ;
>
> - BUTTONMASK, GrabModeAsync, GrabModeSync, None, None);
> + BUTTONMASK, GrabModeAsync, GrabModeSync, None, None);
> XGrabButton(dpy, AnyButton, AnyModifier, c->win, False,
> - BUTTONMASK, GrabModeAsync, GrabModeSync, None, None);
> + BUTTONMASK, GrabModeAsync, GrabModeSync, None, None);
> }
> @@ -1055,7 +1055,7 @@ movemouse(Client *c) {
> if(XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
> - None, cursor[CurMove], CurrentTime) != GrabSuccess)
> + None, cursor[CurMove], CurrentTime) != GrabSuccess)
> return;
> @@ -1221,7 +1221,7 @@ resizemouse(Client *c) {
> if(XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync,
> - None, cursor[CurResize], CurrentTime) != GrabSuccess)
> + None, cursor[CurResize], CurrentTime) != GrabSuccess)
> return;
> @@ -1479,8 +1479,8 @@ setup(void) {
> barwin = XCreateWindow(dpy, root, bx, by, bw, bh, 0, DefaultDepth(dpy, screen),
> - CopyFromParent, DefaultVisual(dpy, screen),
> - CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa);
> + CopyFromParent, DefaultVisual(dpy, screen),
> + CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa);
> XDefineCursor(dpy, barwin, cursor[CurNormal]);
> @@ -1839,7 +1838,7 @@ xerror(Display *dpy, XErrorEvent *ee) {
> fprintf(stderr, "dwm: fatal error: request code=%d, error code=%d\n",
> - ee->request_code, ee->error_code);
> + ee->request_code, ee->error_code);
> return xerrorxlib(dpy, ee); /* may call exit */

All of this looks like code uglification to me...

Diego
Received on Tue May 13 2008 - 16:45:12 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:38:58 UTC