X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=event.c;h=1aed904550584f9c80a997735f5442a25c4c035b;hb=57871415c16664cce494b68dd3e985bcb32942c5;hp=99216b3cb54a64c07c389c288b14f7256642d01c;hpb=77f8c075c48e510e064b8f0b7b823a7e1f9f44b7;p=dwm.git diff --git a/event.c b/event.c index 99216b3..1aed904 100644 --- a/event.c +++ b/event.c @@ -17,7 +17,6 @@ typedef struct { Arg arg; } Key; -CMDS KEYS static unsigned int valid_mask = 255 & ~(NUMLOCKMASK | LockMask); @@ -116,12 +115,10 @@ buttonpress(XEvent *e) } break; case Button4: - a.i = (tsel + 1 < TLast) ? tsel + 1 : 0; - view(&a); + viewnext(&a); break; case Button5: - a.i = (tsel - 1 >= 0) ? tsel - 1 : TLast - 1; - view(&a); + viewprev(&a); break; } }