mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-20 05:50:31 +01:00
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:
parent
d01986d5a9
commit
579a051457
1 changed files with 3 additions and 0 deletions
|
|
@ -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(KeyRelease, modifierMask);
|
||||
|
||||
// push the mouse button
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue