From 39a742e54157df980b4fab50967965fd4f293ce6 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Sat, 28 Mar 2009 20:12:46 +0100 Subject: [PATCH] Event: Add button2 and button3 for the unselected client focus. --- src/event.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/event.c b/src/event.c index 3ea6348..3ad05c7 100644 --- a/src/event.c +++ b/src/event.c @@ -71,12 +71,10 @@ buttonpress(XButtonEvent *ev) /* If the mouse is on a client that is not selected and you click on it. */ if((c = client_gb_win(ev->window)) && c != sel - && ev->button == Button1) - { + && (ev->button == Button1 + || ev->button == Button2 + || ev->button == Button3)) client_focus(c); - if(conf.raisefocus) - client_raise(c); - } /* Root */ if(ev->window == ROOT)