diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-08-18 14:55:01 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-08-18 14:55:01 +0000 |
commit | 3061dd960d5ec4879e20714f9f42d09ee7d9cc60 (patch) | |
tree | 77ec276b61e903e0cfc2d6f8118fa4a224ff1766 | |
parent | 31bdd3e47ad1dfaad002b78f6eca2eae138ee0c0 (diff) | |
download | dzen-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-- | README | 2 | ||||
-rw-r--r-- | README.dzen | 2 | ||||
-rw-r--r-- | action.c | 2 | ||||
-rw-r--r-- | action.h | 2 | ||||
-rw-r--r-- | dzen.h | 8 | ||||
-rw-r--r-- | main.c | 6 |
6 files changed, 21 insertions, 1 deletions
@@ -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 @@ -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}, @@ -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 */ @@ -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 }; @@ -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: |