aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-08-18 14:55:01 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-08-18 14:55:01 +0000
commit3061dd960d5ec4879e20714f9f42d09ee7d9cc60 (patch)
tree77ec276b61e903e0cfc2d6f8118fa4a224ff1766
parent31bdd3e47ad1dfaad002b78f6eca2eae138ee0c0 (diff)
downloaddzen-3061dd960d5ec4879e20714f9f42d09ee7d9cc60.tar.gz
dzen-3061dd960d5ec4879e20714f9f42d09ee7d9cc60.zip
added button6 and button7 events
git-svn-id: http://dzen.googlecode.com/svn/trunk@162 f2baff5b-bf2c-0410-a398-912abdc3d8b2
-rw-r--r--README2
-rw-r--r--README.dzen2
-rw-r--r--action.c2
-rw-r--r--action.h2
-rw-r--r--dzen.h8
-rw-r--r--main.c6
6 files changed, 21 insertions, 1 deletions
diff --git a/README b/README
index b5b0354..5848807 100644
--- a/README
+++ b/README
@@ -247,6 +247,8 @@ Supported events:
button3 Mouse button3 released
button4 Mouse button4 released (usually scrollwheel)
button5 Mouse button5 released (usually scrollwheel)
+ button6 Mouse button6 released
+ button7 Mouse button7 released
entertitle Mouse enters the title window
leavetitle Mouse leaves the title window
enterslave Mouse enters the slave window
diff --git a/README.dzen b/README.dzen
index cff49cd..9a84b59 100644
--- a/README.dzen
+++ b/README.dzen
@@ -246,6 +246,8 @@ An example:
button3 Mouse button3 released
button4 Mouse button4 released (usually scrollwheel)
button5 Mouse button5 released (usually scrollwheel)
+ button6 Mouse button6 released
+ button7 Mouse button7 released
entertitle Mouse enters the title window
leavetitle Mouse leaves the title window
enterslave Mouse enters the slave window
diff --git a/action.c b/action.c
index 5865fda..e491200 100644
--- a/action.c
+++ b/action.c
@@ -20,6 +20,8 @@ struct event_lookup ev_lookup_table[] = {
{ "button3", button3},
{ "button4", button4},
{ "button5", button5},
+ { "button6", button6},
+ { "button7", button7},
{ "entertitle", entertitle},
{ "leavetitle", leavetitle},
{ "enterslave", enterslave},
diff --git a/action.h b/action.h
index f3dad22..6b0e395 100644
--- a/action.h
+++ b/action.h
@@ -16,7 +16,7 @@ enum ev_id {
/* startup, exit, input */
onstart, onexit, onnewinput,
/* mouse buttons */
- button1, button2, button3, button4, button5,
+ button1, button2, button3, button4, button5, button6, button7,
/* entering/leaving windows */
entertitle, leavetitle, enterslave, leaveslave,
/* external signals */
diff --git a/dzen.h b/dzen.h
index d3d2334..6e526e4 100644
--- a/dzen.h
+++ b/dzen.h
@@ -21,6 +21,14 @@
#define MIN_BUF_SIZE 1024
#define MAX_LINE_LEN 1024
+#ifndef Button6
+# define Button6 6
+#endif
+
+#ifndef Button7
+# define Button7 7
+#endif
+
/* gui data structures */
enum { ColFG, ColBG, ColLast };
diff --git a/main.c b/main.c
index 8bd6fd8..469f431 100644
--- a/main.c
+++ b/main.c
@@ -541,6 +541,12 @@ handle_xev(void) {
case Button5:
do_action(button5);
break;
+ case Button6:
+ do_action(button6);
+ break;
+ case Button7:
+ do_action(button7);
+ break;
}
break;
case KeyPress: