Bug handling mouse in x11drv
Carlos Lozano
clozano at andago.com
Sun Oct 26 07:55:25 CST 2003
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 at andago.com ]\___|_| ____/ _/\_\___|
[ calb at epsxe.com ] http://www.ePSXe.com
More information about the wine-devel
mailing list