summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-11 10:00:47 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-11 10:00:47 +0200
commit7d4184dc5c5381d638efb9f26fd8bd6d8a6fe372 (patch)
treef9df230fceb08d375d96ff8c51ced915604e4931 /event.c
parentimplemented focusprev on button1 press in the bar, and focusnext on button3 p... (diff)
downloaddwm-7d4184dc5c5381d638efb9f26fd8bd6d8a6fe372.tar.gz
dwm-7d4184dc5c5381d638efb9f26fd8bd6d8a6fe372.zip
realized that client focussing through the bar is pretty useless, better is sloppy view focussing for B1/B3 as well instead
Diffstat (limited to '')
-rw-r--r--event.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/event.c b/event.c
index 53a110a..8a1c2a9 100644
--- a/event.c
+++ b/event.c
@@ -103,7 +103,7 @@ buttonpress(XEvent *e)
103 103
104 if(barwin == ev->window) { 104 if(barwin == ev->window) {
105 switch(ev->button) { 105 switch(ev->button) {
106 case Button1: 106 default:
107 x = 0; 107 x = 0;
108 for(a.i = 0; a.i < ntags; a.i++) { 108 for(a.i = 0; a.i < ntags; a.i++) {
109 x += textw(tags[a.i]); 109 x += textw(tags[a.i]);
@@ -112,10 +112,10 @@ buttonpress(XEvent *e)
112 return; 112 return;
113 } 113 }
114 } 114 }
115 focusprev(NULL); 115 if(ev->button == Button1)
116 break; 116 viewprev(&a);
117 case Button3: 117 else if(ev->button == Button3)
118 focusnext(NULL); 118 viewnext(&a);
119 break; 119 break;
120 case Button4: 120 case Button4:
121 viewprev(&a); 121 viewprev(&a);