From e97fab3f956f9042fe240b58426c9d93f558c2f4 Mon Sep 17 00:00:00 2001 From: gotmor Date: Fri, 13 Feb 2009 18:00:28 +0000 Subject: made ^ca() to always bind to the title window git-svn-id: http://dzen.googlecode.com/svn/trunk@252 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 3a320b1..511c047 100644 --- a/main.c +++ b/main.c @@ -642,13 +642,16 @@ handle_xev(void) { } /* clickable areas */ - for(i=0; i<20; i++) { + for(i=0; i= sens_areas[i].start_x+xorig && - ev.xbutton.x <= sens_areas[i].end_x+xorig)) + ev.xbutton.x <= sens_areas[i].end_x+xorig)) { spawn(sens_areas[i].cmd); + break; + } } + switch(ev.xbutton.button) { case Button1: do_action(button1); -- cgit v1.2.3-54-g00ecf