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 <am...@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 > >