mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-04 09:28:02 +02:00
Darwin: 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.)
(cherry picked from commit 0d5dd5dffa)
This commit is contained in:
parent
7f2972d47a
commit
4c18ef4331
1 changed files with 3 additions and 0 deletions
|
|
@ -166,6 +166,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