Bug handling mouse in x11drv
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. -- ___ _ \ | / Consulting | . |._ _ _| | ___ ___ ___ http://www.andago.com | || ' |/ . |<_> |/ . |/ . \__ GNU/Linux |_|_||_|_|\___|<___|\_. |\___/ _ \ __|\ \ / Carlos A. Lozano <___'/ | \ -_) __/\__ \ > < -_) [ carlos.lozano(a)andago.com ]\___|_| ____/ _/\_\___| [ calb(a)epsxe.com ] http://www.ePSXe.com
participants (1)
-
Carlos Lozano