dwm-meillo

diff event.c @ 398:9c703e528e58

applied sanders patch
author Anselm R. Garbe <arg@10kloc.org>
date Fri, 01 Sep 2006 10:32:50 +0200
parents 1da9a6b94ca9
children 74739798b0b2
line diff
     1.1 --- a/event.c	Thu Aug 31 18:08:28 2006 +0200
     1.2 +++ b/event.c	Fri Sep 01 10:32:50 2006 +0200
     1.3 @@ -111,13 +111,16 @@
     1.4  			if(ev->x < x) {
     1.5  				switch(ev->button) {
     1.6  				case Button1:
     1.7 -					view(&a);
     1.8 -					break;
     1.9 -				case Button2:
    1.10 -					toggletag(&a);
    1.11 +					if(ev->state & MODKEY)
    1.12 +						tag(&a);
    1.13 +					else
    1.14 +						view(&a);
    1.15  					break;
    1.16  				case Button3:
    1.17 -					toggleview(&a);
    1.18 +					if(ev->state & MODKEY)
    1.19 +						toggletag(&a);
    1.20 +					else
    1.21 +						toggleview(&a);
    1.22  					break;
    1.23  				}
    1.24  				return;