Re: [dwm] idxoftag

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Mon, 22 Oct 2007 09:28:13 +0200

Well, just provide me a patch which includes all changes. I will
think about applying this.

Regards,
        Anselm

On Sat, Oct 20, 2007 at 07:06:40PM +0200, Stefano Soffia wrote:
> Obviously, my knowledge of dwm is quite scarce. Here another missing piece.
>
> Gingioerge

> diff -r 11e0d347de12 dwm.c
> --- a/dwm.c Sat Oct 20 18:59:36 2007 +0200
> +++ b/dwm.c Sat Oct 20 19:02:55 2007 +0200
> @@ -318,15 +318,15 @@ buttonpress(XEvent *e) {
> if(ev->x < x) {
> if(ev->button == Button1) {
> if(ev->state & MODKEY)
> - tag(tags[i]);
> + tag(index_to_tag(i));
> else
> - view(tags[i]);
> + view(index_to_tag(i));
> }
> else if(ev->button == Button3) {
> if(ev->state & MODKEY)
> - toggletag(tags[i]);
> + toggletag(index_to_tag(i));
> else
> - toggleview(tags[i]);
> + toggleview(index_to_tag(i));
> }
> return;
> }

-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
Received on Mon Oct 22 2007 - 09:28:13 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:01:25 UTC