]> source.dussan.org Git - tigervnc.git/commitdiff
Use different keysyms for left and right alt on OS X
authorPierre Ossman <ossman@cendio.se>
Thu, 21 Aug 2014 11:44:28 +0000 (13:44 +0200)
committerPierre Ossman <ossman@cendio.se>
Fri, 22 Aug 2014 13:10:29 +0000 (15:10 +0200)
The server will get them confused otherwise if they are pressed
at the same time.

vncviewer/Viewport.cxx

index 81dc7ac009d3daf2e41717e5ef268295f069ff2a..ec48b02ee14ef96bbeba21da314c0671f8ef9473 100644 (file)
@@ -534,6 +534,8 @@ void Viewport::handleKeyPress(int keyCode, rdr::U32 keySym)
     keySym = XK_Super_L;
     break;
   case XK_Alt_L:
+    keySym = XK_Mode_switch;
+    break;
   case XK_Alt_R:
     keySym = XK_ISO_Level3_Shift;
     break;