xserver: Branch 'master'

Jeremy Huddleston jeremyhu at kemper.freedesktop.org
Tue Feb 24 23:14:05 PST 2009


 hw/xquartz/darwinEvents.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d6976e1436c035b8e4a6d1e10971b083b1b4184b
Author: Jeremy Huddleston <jeremy at yuffie.local>
Date:   Tue Feb 24 23:12:57 2009 -0800

    XQuartz: Re-enable support for capslock
    (cherry picked from commit 4901b8147e593d26d7a31a9b73a201254b948916)

diff --git a/hw/xquartz/darwinEvents.c b/hw/xquartz/darwinEvents.c
index 2dc0482..7f0ff7e 100644
--- a/hw/xquartz/darwinEvents.c
+++ b/hw/xquartz/darwinEvents.c
@@ -154,6 +154,7 @@ int darwin_modifier_mask_list[] = {
 #else
     NX_CONTROLMASK, NX_SHIFTMASK, NX_COMMANDMASK, NX_ALTERNATEMASK,
 #endif
+    NX_ALPHASHIFTMASK,
     0
 };
 
@@ -173,7 +174,7 @@ static void DarwinUpdateModifiers(
     }
     
     for(f=darwin_modifier_mask_list; *f; f++)
-        if(*f & flags) {
+        if(*f & flags && *f != NX_ALPHASHIFTMASK) {
             key = DarwinModifierNXMaskToNXKey(*f);
             if(key == -1)
                 ErrorF("DarwinUpdateModifiers: Unsupported NXMask: 0x%x\n", *f);


More information about the xorg-commit mailing list