From 154497541d1378d3aded02df06029de94d8af586 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Thu, 26 Jul 2007 20:15:02 +0200 Subject: applied Jeroen's {clean,spell}.diff patches, thanks Jeroen! --- event.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'event.c') diff --git a/event.c b/event.c index ac96df1c..1454b0b7 100644 --- a/event.c +++ b/event.c @@ -142,12 +142,8 @@ buttonpress(XEvent *e) { return; } } - if(ev->x < x + blw) - switch(ev->button) { - case Button1: - setlayout(NULL); - break; - } + if(ev->x < x + blw && ev->button == Button1) + setlayout(NULL); else if(ev->button == Button4) focusclient("-1"); else if(ev->button == Button5) -- cgit v1.2.3