all repos — dwm @ 40bd21ce631073e7badd3d9617c273f44711c059

my dwm build

s/growcol/resizetile/g
Anselm R. Garbe arg@10kloc.org
Tue, 05 Sep 2006 13:25:42 +0200
commit

40bd21ce631073e7badd3d9617c273f44711c059

parent

4633fbec616d2f130dfd5d8677e103cf47d26c15

4 files changed, 15 insertions(+), 15 deletions(-)

jump to
M config.arg.hconfig.arg.h

@@ -34,7 +34,7 @@ { MODKEY, XK_j, focusnext, { 0 } }, \

{ MODKEY, XK_k, focusprev, { 0 } }, \ { MODKEY, XK_Return, zoom, { 0 } }, \ { MODKEY, XK_m, togglemax, { 0 } }, \ - { MODKEY, XK_g, growcol, { .i = 20 } }, \ + { MODKEY, XK_g, resizetile, { .i = 20 } }, \ { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \ { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \ { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \
M config.default.hconfig.default.h

@@ -29,7 +29,7 @@ { MODKEY, XK_Tab, focusnext, { 0 } }, \

{ MODKEY|ShiftMask, XK_Tab, focusprev, { 0 } }, \ { MODKEY, XK_Return, zoom, { 0 } }, \ { MODKEY, XK_m, togglemax, { 0 } }, \ - { MODKEY, XK_g, growcol, { .i = 20 } }, \ + { MODKEY, XK_g, resizetile, { .i = 20 } }, \ { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \ { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \ { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \
M dwm.hdwm.h

@@ -131,8 +131,8 @@ extern void dofloat(Arg *arg);

extern void dotile(Arg *arg); extern void focusnext(Arg *arg); extern void focusprev(Arg *arg); -extern void growcol(Arg *arg); extern Bool isvisible(Client *c); +extern void resizetile(Arg *arg); extern void restack(); extern void togglemode(Arg *arg); extern void toggleview(Arg *arg);
M view.cview.c

@@ -169,8 +169,19 @@ restack();

} } +Bool +isvisible(Client *c) +{ + unsigned int i; + + for(i = 0; i < ntags; i++) + if(c->tags[i] && seltag[i]) + return True; + return False; +} + void -growcol(Arg *arg) +resizetile(Arg *arg) { Client *c = getnext(clients);

@@ -187,17 +198,6 @@ return;

mw -= arg->i; } arrange(NULL); -} - -Bool -isvisible(Client *c) -{ - unsigned int i; - - for(i = 0; i < ntags; i++) - if(c->tags[i] && seltag[i]) - return True; - return False; } void