aboutsummaryrefslogtreecommitdiffstats
path: root/dzen.h
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2009-02-13 15:18:51 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2009-02-13 15:18:51 +0000
commit945c9936a036e2c24186aba12e0e8bf402f139fd (patch)
tree628e44e2ae886d6b6c1efcc9b26408decb3858cb /dzen.h
parent56a428c495dd0caae0c506bec0f16dff1770cd36 (diff)
downloaddzen-945c9936a036e2c24186aba12e0e8bf402f139fd.tar.gz
dzen-945c9936a036e2c24186aba12e0e8bf402f139fd.zip
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
Diffstat (limited to 'dzen.h')
-rw-r--r--dzen.h13
1 files changed, 13 insertions, 0 deletions
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 {