diff options
author | rsc <devnull@localhost> | 2004-06-17 03:31:47 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-06-17 03:31:47 +0000 |
commit | e66de6b07736b88e3aa300640b862cc1c4f0d0a4 (patch) | |
tree | c0eb0ab30f25b7ad9b7732247b79e61945197dcb /src/libdraw | |
parent | dea58c42de4bdf2eb9321be0a48fa27b5930909e (diff) | |
download | plan9port-e66de6b07736b88e3aa300640b862cc1c4f0d0a4.tar.gz plan9port-e66de6b07736b88e3aa300640b862cc1c4f0d0a4.tar.bz2 plan9port-e66de6b07736b88e3aa300640b862cc1c4f0d0a4.zip |
fix alt on mac
Diffstat (limited to 'src/libdraw')
-rw-r--r-- | src/libdraw/x11-itrans.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libdraw/x11-itrans.c b/src/libdraw/x11-itrans.c index ecc0f698..649db962 100644 --- a/src/libdraw/x11-itrans.c +++ b/src/libdraw/x11-itrans.c @@ -134,6 +134,15 @@ xtoplan9latin1(XEvent *e) if(r < 0) return nil; if(alting){ + /* + * Kludge for Mac's X11 3-button emulation. + * It treats Command+Button as button 3, but also + * ends up sending XK_Meta_L twice. + */ + if(r == Kalt){ + alting = 0; + return nil; + } k[nk++] = r; n = _latin1(k, nk); if(n > 0){ |