> 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 - 19:44:44 UTC
This archive was generated by hypermail 2.2.0 : Tue May 25 2010 - 20:00:03 UTC