about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2009-04-20 11:03:33 +0100
committerAnselm R Garbe <garbeam@gmail.com>2009-04-20 11:03:33 +0100
commit7df39f3fc71aa62e64664787902152b41617fe1c (patch)
treedaec8a9c13508e5b56236436b6512cb75ceafb4a
parent0b45199cecd4f77ff0da2c42e763511dcfba2d9a (diff)
downloaddwm-7df39f3fc71aa62e64664787902152b41617fe1c.tar.gz
next version will be 5.6, shortened some very long lines
-rw-r--r--config.mk2
-rw-r--r--dwm.c14
2 files changed, 11 insertions, 5 deletions
diff --git a/config.mk b/config.mk
index 957a92c..bd9c6b3 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
 # dwm version
-VERSION = 5.5
+VERSION = 5.6
 
 # Customize below to fit your system
 
diff --git a/dwm.c b/dwm.c
index 8620306..9266892 100644
--- a/dwm.c
+++ b/dwm.c
@@ -797,7 +797,10 @@ grabbuttons(Client *c, Bool focused) {
 			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 @@ manage(Window w, XWindowAttributes *wa) {
 			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 @@ movemouse(const Arg *arg) {
 					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 @@ updatenumlockmask(void) {
 	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);
 }