diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2009-02-13 18:00:28 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2009-02-13 18:00:28 +0000 |
commit | e97fab3f956f9042fe240b58426c9d93f558c2f4 (patch) | |
tree | 3b14ae7a5c1c7e15e24eb416f6d94f3886158e3c /main.c | |
parent | 945c9936a036e2c24186aba12e0e8bf402f139fd (diff) | |
download | dzen-e97fab3f956f9042fe240b58426c9d93f558c2f4.tar.gz dzen-e97fab3f956f9042fe240b58426c9d93f558c2f4.zip |
made ^ca() to always bind to the title window
git-svn-id: http://dzen.googlecode.com/svn/trunk@252 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -642,13 +642,16 @@ handle_xev(void) { } /* clickable areas */ - for(i=0; i<20; i++) { + for(i=0; i<MAX_CLICKABLE_AREAS; i++) { if(ev.xbutton.window == dzen.title_win.win && ev.xbutton.button == sens_areas[i].button && (ev.xbutton.x >= 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); |