s/growcol/resizetile/g

This commit is contained in:
Anselm R. Garbe 2006-09-05 13:25:42 +02:00
parent 4633fbec61
commit 40bd21ce63
4 changed files with 15 additions and 15 deletions

View File

@ -34,7 +34,7 @@ static Key key[] = { \
{ MODKEY, XK_k, focusprev, { 0 } }, \ { MODKEY, XK_k, focusprev, { 0 } }, \
{ MODKEY, XK_Return, zoom, { 0 } }, \ { MODKEY, XK_Return, zoom, { 0 } }, \
{ MODKEY, XK_m, togglemax, { 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_1, tag, { .i = 0 } }, \
{ MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \ { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \
{ MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \ { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \

View File

@ -29,7 +29,7 @@ static Key key[] = { \
{ MODKEY|ShiftMask, XK_Tab, focusprev, { 0 } }, \ { MODKEY|ShiftMask, XK_Tab, focusprev, { 0 } }, \
{ MODKEY, XK_Return, zoom, { 0 } }, \ { MODKEY, XK_Return, zoom, { 0 } }, \
{ MODKEY, XK_m, togglemax, { 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_1, tag, { .i = 0 } }, \
{ MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \ { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \
{ MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \ { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \

2
dwm.h
View File

@ -131,8 +131,8 @@ extern void dofloat(Arg *arg);
extern void dotile(Arg *arg); extern void dotile(Arg *arg);
extern void focusnext(Arg *arg); extern void focusnext(Arg *arg);
extern void focusprev(Arg *arg); extern void focusprev(Arg *arg);
extern void growcol(Arg *arg);
extern Bool isvisible(Client *c); extern Bool isvisible(Client *c);
extern void resizetile(Arg *arg);
extern void restack(); extern void restack();
extern void togglemode(Arg *arg); extern void togglemode(Arg *arg);
extern void toggleview(Arg *arg); extern void toggleview(Arg *arg);

24
view.c
View File

@ -169,8 +169,19 @@ focusprev(Arg *arg)
} }
} }
Bool
isvisible(Client *c)
{
unsigned int i;
for(i = 0; i < ntags; i++)
if(c->tags[i] && seltag[i])
return True;
return False;
}
void void
growcol(Arg *arg) resizetile(Arg *arg)
{ {
Client *c = getnext(clients); Client *c = getnext(clients);
@ -189,17 +200,6 @@ growcol(Arg *arg)
arrange(NULL); 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 void
restack() restack()
{ {