removed viewnext/viewprev
Anselm R.Garbe arg@10ksloc.org
Mon, 14 Aug 2006 08:38:26 +0200
6 files changed,
9 insertions(+),
65 deletions(-)
M
config.arg.h
→
config.arg.h
@@ -22,10 +22,8 @@ /* modifier key function arguments */ \
{ MODKEY, XK_1, view, { .i = 0 } }, \ { MODKEY, XK_2, view, { .i = 1 } }, \ { MODKEY, XK_3, view, { .i = 2 } }, \ - { MODKEY, XK_h, viewprev, { 0 } }, \ { MODKEY, XK_j, focusnext, { 0 } }, \ { MODKEY, XK_k, focusprev, { 0 } }, \ - { MODKEY, XK_l, viewnext, { 0 } }, \ { MODKEY, XK_m, togglemax, { 0 } }, \ { MODKEY, XK_p, spawn, \ { .cmd = "exec `ls -lL /usr/bin /usr/local/bin 2>/dev/null | " \
M
config.default.h
→
config.default.h
@@ -24,10 +24,8 @@ { MODKEY, XK_1, view, { .i = 1 } }, \
{ MODKEY, XK_2, view, { .i = 2 } }, \ { MODKEY, XK_3, view, { .i = 3 } }, \ { MODKEY, XK_4, view, { .i = 4 } }, \ - { MODKEY, XK_h, viewprev, { 0 } }, \ { MODKEY, XK_j, focusnext, { 0 } }, \ { MODKEY, XK_k, focusprev, { 0 } }, \ - { MODKEY, XK_l, viewnext, { 0 } }, \ { MODKEY, XK_m, togglemax, { 0 } }, \ { MODKEY, XK_space, togglemode, { 0 } }, \ { MODKEY, XK_Return, zoom, { 0 } }, \
M
dwm.1
→
dwm.1
@@ -43,14 +43,6 @@ .TP
.B Button2 click on a tag label toggles that .B tag. -.TP -.B Button[1,4] -click on the bar focuses the previous -.B tag. -.TP -.B Button[2,5] -click on the bar focuses the next -.B tag. .SS Keyboard commands .TP .B Mod1-Return@@ -60,10 +52,6 @@ to the
.B master column. .TP -.B Mod1-h -Focus previous -.B tag. -.TP .B Mod1-j Focus next .B window.@@ -71,10 +59,6 @@ .TP
.B Mod1-k Focus previous .B window. -.TP -.B Mod1-l -Focus next -.B tag. .TP .B Mod1-m Maximize current
M
event.c
→
event.c
@@ -102,30 +102,16 @@ Client *c;
XButtonPressedEvent *ev = &e->xbutton; if(barwin == ev->window) { - switch(ev->button) { - default: - x = 0; - for(a.i = 0; a.i < ntags; a.i++) { - x += textw(tags[a.i]); - if(ev->x < x) { - if(ev->button == Button3) - toggleview(&a); - else - view(&a); - return; - } + x = 0; + for(a.i = 0; a.i < ntags; a.i++) { + x += textw(tags[a.i]); + if(ev->x < x) { + if(ev->button == Button3) + toggleview(&a); + else + view(&a); + return; } - if(ev->button == Button1) - viewprev(&a); - else if(ev->button == Button3) - viewnext(&a); - break; - case Button4: - viewprev(&a); - break; - case Button5: - viewnext(&a); - break; } } else if((c = getclient(ev->window))) {
M
tag.c
→
tag.c
@@ -263,23 +263,3 @@ seltag[arg->i] = True; /* cannot toggle last view */
arrange(NULL); drawall(); } - -void -viewnext(Arg *arg) -{ - unsigned int i; - - for(i = 0; !seltag[i]; i++); - arg->i = (i < ntags-1) ? i+1 : 0; - view(arg); -} - -void -viewprev(Arg *arg) -{ - unsigned int i; - - for(i = 0; !seltag[i]; i++); - arg->i = (i > 0) ? i-1 : ntags-1; - view(arg); -}