Workaround for a bug where the holding down Command to make a "fake"

button 2 click would actually result in a Command-2 chord.
(I.e. it wasn't releasing Command before clicking the fake button.)
This commit is contained in:
Ben Byer 2007-10-31 03:22:18 -07:00 committed by Jeremy Huddleston
parent 13dd854431
commit 0d5dd5dffa

View File

@ -162,6 +162,9 @@ static void DarwinSimulateMouseClick(
int modifierMask) // modifiers used for the fake click
{
// first fool X into forgetting about the keys
// for some reason, it's not enough to tell X we released the Command key --
// it has to be the *left* Command key.
if (modifierMask & NX_COMMANDMASK) modifierMask |=NX_DEVICELCMDKEYMASK ;
DarwinUpdateModifiers(xe, KeyRelease, modifierMask);
// push the mouse button