[hackers] [dwm] next version will be 5.6, shortened some very long lines || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Mon, 20 Apr 2009 10:03:39 +0000 (UTC)

changeset: 1395:a2c094196714
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Mon Apr 20 11:03:33 2009 +0100
files: config.mk dwm.c
description:
next version will be 5.6, shortened some very long lines

diff -r 662860aa8410 -r a2c094196714 config.mk
--- a/config.mk Sat Apr 18 12:49:34 2009 +0100
+++ b/config.mk Mon Apr 20 11:03:33 2009 +0100
@@ -1,5 +1,5 @@
 # dwm version
-VERSION = 5.5
+VERSION = 5.6
 
 # Customize below to fit your system
 
diff -r 662860aa8410 -r a2c094196714 dwm.c
--- a/dwm.c Sat Apr 18 12:49:34 2009 +0100
+++ b/dwm.c Mon Apr 20 11:03:33 2009 +0100
@@ -797,7 +797,10 @@
                         for(i = 0; i < LENGTH(buttons); i++)
                                 if(buttons[i].click == ClkClientWin)
                                         for(j = 0; j < LENGTH(modifiers); j++)
- XGrabButton(dpy, buttons[i].button, buttons[i].mask | modifiers[j], c->win, False, BUTTONMASK, GrabModeAsync, GrabModeSync, None, None);
+ XGrabButton(dpy, buttons[i].button,
+ buttons[i].mask | modifiers[j],
+ c->win, False, BUTTONMASK,
+ GrabModeAsync, GrabModeSync, None, None);
                 } else
                         XGrabButton(dpy, AnyButton, AnyModifier, c->win, False,
                                     BUTTONMASK, GrabModeAsync, GrabModeSync, None, None);
@@ -936,7 +939,8 @@
                         c->y = sy + sh - HEIGHT(c);
                 c->x = MAX(c->x, sx);
                 /* only fix client y-offset, if the client center might cover the bar */
- c->y = MAX(c->y, ((by == 0) && (c->x + (c->w / 2) >= wx) && (c->x + (c->w / 2) < wx + ww)) ? bh : sy);
+ c->y = MAX(c->y, ((by == 0) && (c->x + (c->w / 2) >= wx)
+ && (c->x + (c->w / 2) < wx + ww)) ? bh : sy);
                 c->bw = borderpx;
         }
 
@@ -1035,7 +1039,8 @@
                                         ny = wy;
                                 else if(abs((wy + wh) - (ny + HEIGHT(c))) < snap)
                                         ny = wy + wh - HEIGHT(c);
- if(!c->isfloating && lt[sellt]->arrange && (abs(nx - c->x) > snap || abs(ny - c->y) > snap))
+ if(!c->isfloating && lt[sellt]->arrange
+ && (abs(nx - c->x) > snap || abs(ny - c->y) > snap))
                                         togglefloating(NULL);
                         }
                         if(!lt[sellt]->arrange || c->isfloating)
@@ -1540,7 +1545,8 @@
         modmap = XGetModifierMapping(dpy);
         for(i = 0; i < 8; i++)
                 for(j = 0; j < modmap->max_keypermod; j++)
- if(modmap->modifiermap[i * modmap->max_keypermod + j] == XKeysymToKeycode(dpy, XK_Num_Lock))
+ if(modmap->modifiermap[i * modmap->max_keypermod + j]
+ == XKeysymToKeycode(dpy, XK_Num_Lock))
                                 numlockmask = (1 << i);
         XFreeModifiermap(modmap);
 }
Received on Mon Apr 20 2009 - 10:03:39 UTC

This archive was generated by hypermail 2.2.0 : Mon Apr 20 2009 - 10:12:04 UTC