Mercurial > dwm-meillo
comparison event.c @ 263:118d3e010e5e
made shortcuts like proposed by Sander, renamed viewextend to toggleview (more clear)
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Sun, 13 Aug 2006 17:58:06 +0200 |
parents | d659a2dce2b5 |
children | 8a8ea74e1b87 |
comparison
equal
deleted
inserted
replaced
262:d659a2dce2b5 | 263:118d3e010e5e |
---|---|
107 x = 0; | 107 x = 0; |
108 for(a.i = 0; a.i < ntags; a.i++) { | 108 for(a.i = 0; a.i < ntags; a.i++) { |
109 x += textw(tags[a.i]); | 109 x += textw(tags[a.i]); |
110 if(ev->x < x) { | 110 if(ev->x < x) { |
111 if(ev->button == Button3) | 111 if(ev->button == Button3) |
112 viewextend(&a); | 112 toggleview(&a); |
113 else | 113 else |
114 view(&a); | 114 view(&a); |
115 return; | 115 return; |
116 } | 116 } |
117 } | 117 } |