X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=event.c;h=3f06ea76200f8148c2ba06d4bc6614850dfabe42;hb=82be28998576083b3e66ed436eb90ceba819c60a;hp=ce23e416e1441b8d23cd4749bdd0acebabf101e7;hpb=d934296476be7345842fec1a2630d1752c704078;p=dwm.git diff --git a/event.c b/event.c index ce23e41..3f06ea7 100644 --- a/event.c +++ b/event.c @@ -1,9 +1,4 @@ -/* © 2006-2007 Anselm R. Garbe - * © 2006-2007 Sander van Dijk - * © 2006-2007 Jukka Salmi - * © 2007 Premysl Hruby - * © 2007 Szabolcs Nagy - * See LICENSE file for license details. */ +/* See LICENSE file for copyright and license details. */ #include "dwm.h" #include #include @@ -149,6 +144,10 @@ buttonpress(XEvent *e) { setlayout(NULL); break; } + else if(ev->button == Button4) + focusclient("-1"); + else if(ev->button == Button5) + focusclient("1"); } else if((c = getclient(ev->window))) { focus(c);