From 945c9936a036e2c24186aba12e0e8bf402f139fd Mon Sep 17 00:00:00 2001 From: gotmor Date: Fri, 13 Feb 2009 15:18:51 +0000 Subject: first bloody support for ^ca(button,cmd) ... ^ca() as of now it has the following limitations: * only works in the title window * does not work with "-expand" * probably some other issues git-svn-id: http://dzen.googlecode.com/svn/trunk@251 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- dzen.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'dzen.h') diff --git a/dzen.h b/dzen.h index d7703cc..6dfdf7d 100644 --- a/dzen.h +++ b/dzen.h @@ -26,6 +26,8 @@ #define MIN_BUF_SIZE 1024 #define MAX_LINE_LEN 8192 +#define MAX_CLICKABLE_AREAS 256 + #ifndef Button6 # define Button6 6 #endif @@ -58,6 +60,17 @@ struct Fnt { #endif }; +/* clickable areas */ +typedef struct _CLICK_A { + int button; + int start_x; + int end_x; + char cmd[1024]; +} click_a; +extern click_a sens_areas[MAX_CLICKABLE_AREAS]; +extern int sens_areas_cnt; +extern int xorig; + /* title window */ struct TW { -- cgit v1.2.3-54-g00ecf