aewl

changeset 377:b1159a638d0a

removed crappy variables
author Anselm R. Garbe <arg@10kloc.org>
date Mon, 28 Aug 2006 14:32:51 +0200
parents 201acf925788
children 83576f5f0a90
files client.c config.arg.h draw.c
diffstat 3 files changed, 5 insertions(+), 5 deletions(-) [+]
line diff
     1.1 --- a/client.c	Mon Aug 28 12:27:00 2006 +0200
     1.2 +++ b/client.c	Mon Aug 28 14:32:51 2006 +0200
     1.3 @@ -52,8 +52,6 @@
     1.4  static void
     1.5  resizetitle(Client *c)
     1.6  {
     1.7 -	int i;
     1.8 -
     1.9  	c->tw = textw(c->name);
    1.10  	if(c->tw > c->w)
    1.11  		c->tw = c->w + 2;
    1.12 @@ -340,7 +338,7 @@
    1.13  settitle(Client *c)
    1.14  {
    1.15  	char **list = NULL;
    1.16 -	int i, n;
    1.17 +	int n;
    1.18  	XTextProperty name;
    1.19  
    1.20  	name.nitems = 0;
     2.1 --- a/config.arg.h	Mon Aug 28 12:27:00 2006 +0200
     2.2 +++ b/config.arg.h	Mon Aug 28 14:32:51 2006 +0200
     2.3 @@ -36,17 +36,21 @@
     2.4  	{ MODKEY|ShiftMask,		XK_1,		tag,		{ .i = 0 } }, \
     2.5  	{ MODKEY|ShiftMask,		XK_2,		tag,		{ .i = 1 } }, \
     2.6  	{ MODKEY|ShiftMask,		XK_3,		tag,		{ .i = 2 } }, \
     2.7 +	{ MODKEY|ShiftMask,		XK_4,		tag,		{ .i = 3 } }, \
     2.8  	{ MODKEY|ControlMask|ShiftMask,	XK_1,		toggletag,	{ .i = 0 } }, \
     2.9  	{ MODKEY|ControlMask|ShiftMask,	XK_2,		toggletag,	{ .i = 1 } }, \
    2.10  	{ MODKEY|ControlMask|ShiftMask,	XK_3,		toggletag,	{ .i = 2 } }, \
    2.11 +	{ MODKEY|ControlMask|ShiftMask,	XK_4,		toggletag,	{ .i = 3 } }, \
    2.12  	{ MODKEY|ShiftMask,		XK_c,		killclient,	{ 0 } }, \
    2.13  	{ MODKEY,			XK_space,	togglemode,	{ 0 } }, \
    2.14  	{ MODKEY,			XK_1,		view,		{ .i = 0 } }, \
    2.15  	{ MODKEY,			XK_2,		view,		{ .i = 1 } }, \
    2.16  	{ MODKEY,			XK_3,		view,		{ .i = 2 } }, \
    2.17 +	{ MODKEY,			XK_4,		view,		{ .i = 3 } }, \
    2.18  	{ MODKEY|ControlMask,		XK_1,		toggleview,	{ .i = 0 } }, \
    2.19  	{ MODKEY|ControlMask,		XK_2,		toggleview,	{ .i = 1 } }, \
    2.20  	{ MODKEY|ControlMask,		XK_3,		toggleview,	{ .i = 2 } }, \
    2.21 +	{ MODKEY|ControlMask,		XK_4,		toggleview,	{ .i = 3 } }, \
    2.22  	{ MODKEY|ShiftMask,		XK_q,		quit,		{ 0 } }, \
    2.23  };
    2.24  
     3.1 --- a/draw.c	Mon Aug 28 12:27:00 2006 +0200
     3.2 +++ b/draw.c	Mon Aug 28 14:32:51 2006 +0200
     3.3 @@ -133,8 +133,6 @@
     3.4  void
     3.5  drawtitle(Client *c)
     3.6  {
     3.7 -	int i;
     3.8 -
     3.9  	if(c == sel && issel) {
    3.10  		drawstatus();
    3.11  		XUnmapWindow(dpy, c->twin);