Hello,
Does anyone know why "update_key_state" is called in the mouse related functions: GetCursorPos, SetCursorPos, ButtonPress, ButtonRelease, MotionNotify and EnterNotify??
In gnome (+metacity), i use the key shift+left or shift+right to change of desktop. Then for example using WinMX, with the search input selected and writing in it, if i type shift+right then it will go the right desktop, when i press later shift+left, it goes back to the original desktop (where the winmx window is), but now every letter what i type, will be uppercase (even when shift is disabled).
update_key_state does:
static void update_key_state( unsigned int state ) { pKeyStateTable[VK_SHIFT] = (state & ShiftMask ? 0x80 : 0); pKeyStateTable[VK_CONTROL] = (state & ControlMask ? 0x80 : 0); }
Removing the VK_SHIFT line, the problem is fixed, but i think that this function should be removed, except that someone knows why this 2 keys/states must be updated here (in mouse functions) :/
Regards, Carlos.