diff options
Diffstat (limited to 'event.c')
| -rw-r--r-- | event.c | 20 |
1 files changed, 10 insertions, 10 deletions
| @@ -11,7 +11,7 @@ | |||
| 11 | typedef struct { | 11 | typedef struct { |
| 12 | unsigned long mod; | 12 | unsigned long mod; |
| 13 | KeySym keysym; | 13 | KeySym keysym; |
| 14 | void (*func)(Arg *arg); | 14 | void (*func)(Arg arg); |
| 15 | Arg arg; | 15 | Arg arg; |
| 16 | } Key; | 16 | } Key; |
| 17 | 17 | ||
| @@ -124,15 +124,15 @@ buttonpress(XEvent *e) { | |||
| 124 | if(ev->x < x) { | 124 | if(ev->x < x) { |
| 125 | if(ev->button == Button1) { | 125 | if(ev->button == Button1) { |
| 126 | if(ev->state & MODKEY) | 126 | if(ev->state & MODKEY) |
| 127 | tag(&a); | 127 | tag(a); |
| 128 | else | 128 | else |
| 129 | view(&a); | 129 | view(a); |
| 130 | } | 130 | } |
| 131 | else if(ev->button == Button3) { | 131 | else if(ev->button == Button3) { |
| 132 | if(ev->state & MODKEY) | 132 | if(ev->state & MODKEY) |
| 133 | toggletag(&a); | 133 | toggletag(a); |
| 134 | else | 134 | else |
| 135 | toggleview(&a); | 135 | toggleview(a); |
| 136 | } | 136 | } |
| 137 | return; | 137 | return; |
| 138 | } | 138 | } |
| @@ -141,15 +141,15 @@ buttonpress(XEvent *e) { | |||
| 141 | switch(ev->button) { | 141 | switch(ev->button) { |
| 142 | case Button1: | 142 | case Button1: |
| 143 | a.i = -1; | 143 | a.i = -1; |
| 144 | setlayout(&a); | 144 | setlayout(a); |
| 145 | break; | 145 | break; |
| 146 | case Button4: | 146 | case Button4: |
| 147 | a.i = 1; | 147 | a.i = 1; |
| 148 | incnmaster(&a); | 148 | incnmaster(a); |
| 149 | break; | 149 | break; |
| 150 | case Button5: | 150 | case Button5: |
| 151 | a.i = -1; | 151 | a.i = -1; |
| 152 | incnmaster(&a); | 152 | incnmaster(a); |
| 153 | break; | 153 | break; |
| 154 | } | 154 | } |
| 155 | } | 155 | } |
| @@ -162,7 +162,7 @@ buttonpress(XEvent *e) { | |||
| 162 | movemouse(c); | 162 | movemouse(c); |
| 163 | } | 163 | } |
| 164 | else if(ev->button == Button2) | 164 | else if(ev->button == Button2) |
| 165 | zoom(NULL); | 165 | zoom(a); |
| 166 | else if(ev->button == Button3 | 166 | else if(ev->button == Button3 |
| 167 | && (lt->arrange == versatile || c->isversatile) && !c->isfixed) | 167 | && (lt->arrange == versatile || c->isversatile) && !c->isfixed) |
| 168 | { | 168 | { |
| @@ -261,7 +261,7 @@ keypress(XEvent *e) { | |||
| 261 | && CLEANMASK(key[i].mod) == CLEANMASK(ev->state)) | 261 | && CLEANMASK(key[i].mod) == CLEANMASK(ev->state)) |
| 262 | { | 262 | { |
| 263 | if(key[i].func) | 263 | if(key[i].func) |
| 264 | key[i].func(&key[i].arg); | 264 | key[i].func(key[i].arg); |
| 265 | } | 265 | } |
| 266 | } | 266 | } |
| 267 | 267 | ||
