Re: [dev] [dwm] can't toggle tags with mouse

From: <orschiro_AT_gmail.com>
Date: Tue, 25 May 2010 23:29:35 +0200

Hello Andres,

thank you for your patch. I had to adjust it a little bit but it's working
flawlessly now. :)

Best regards

Robert

2010/5/25 Andreas Amann <amann_AT_physik.tu-berlin.de>

> > Whenever I use the polish layout this effect appears. The german layout
> on
> > the other side still works fine.
> >
> > What could that be?
> >
>
>
> I had a similar problem when switching between uk <-> de layout. The reason
> was that when the alternate second keyboard is active,
> the bit 13 of XEvent->xbutton->state is switched on.
>
> The following hack fixed it for me, but might not be very portable:
>
>
> diff --git a/dwm.c b/dwm.c
> --- a/dwm.c
> +++ b/dwm.c
> @@ -43,7 +43,7 @@
> /* macros */
> #define D if(1)
> #define BUTTONMASK (ButtonPressMask|ButtonReleaseMask)
> -#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask))
> +#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask|1L<<13))
> #define INRECT(X,Y,RX,RY,RW,RH) ((X) >= (RX) && (X) < (RX) + (RW) && (Y)
> >=
> # (RY) && (Y) < (RY) + (RH))
> #define ISVISIBLE(C) ((C->tags &
> # C->mon->tagset[C->mon->seltags]))
> #define LENGTH(X) (sizeof X / sizeof X[0])
>
>
>
>
>
>
> Alternatively you can also add buttons in config.h with bit 13 set in the
> event mask. The real fix fight be to rewrite CLEANMASK so that it only lets
> through desirable modifiers.
>
> Andreas
>
>
Received on Tue May 25 2010 - 21:29:35 UTC

This archive was generated by hypermail 2.2.0 : Tue May 25 2010 - 21:36:02 UTC