summaryrefslogtreecommitdiff
path: root/hw/xquartz/darwinEvents.c
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2009-04-11 13:53:38 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2009-04-11 17:22:20 -0700
commitbd1d9179094657865b0606ed0ac835a8b8df3be1 (patch)
tree1554c9ca33fe7c5f8dad38e4c9417b0b93186077 /hw/xquartz/darwinEvents.c
parent1b5758bef0840c6614244e321790231b3c9477c9 (diff)
XQuartz: Re-enable Fn as an option for 3button mouse simulation.
Patch from Martin Otte <otte@duke.edu> (cherry picked from commit b5ec3be6b5449b5d575bc1472fdd1c9cb15cb8be)
Diffstat (limited to 'hw/xquartz/darwinEvents.c')
-rw-r--r--hw/xquartz/darwinEvents.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/hw/xquartz/darwinEvents.c b/hw/xquartz/darwinEvents.c
index 7f0ff7e88..b69ed6a7e 100644
--- a/hw/xquartz/darwinEvents.c
+++ b/hw/xquartz/darwinEvents.c
@@ -154,7 +154,7 @@ int darwin_modifier_mask_list[] = {
#else
NX_CONTROLMASK, NX_SHIFTMASK, NX_COMMANDMASK, NX_ALTERNATEMASK,
#endif
- NX_ALPHASHIFTMASK,
+ NX_ALPHASHIFTMASK, NX_SECONDARYFNMASK
0
};
@@ -174,7 +174,10 @@ static void DarwinUpdateModifiers(
}
for(f=darwin_modifier_mask_list; *f; f++)
- if(*f & flags && *f != NX_ALPHASHIFTMASK) {
+ /* NX_ALPHASHIFTMASK is handled above and NX_SECONDARYFNMASK is not
+ * mapped to a key (it is just useful for 3button mouse simulation
+ */
+ if(*f & flags && *f != NX_ALPHASHIFTMASK && *f != NX_SECONDARYFNMASK) {
key = DarwinModifierNXMaskToNXKey(*f);
if(key == -1)
ErrorF("DarwinUpdateModifiers: Unsupported NXMask: 0x%x\n", *f);