drawterm: fix middle click emulation

This commit is contained in:
Enno Boland 2015-05-13 15:54:39 +02:00
parent 3af247912d
commit 9dd1558b26
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
https://bitbucket.org/rsc/drawterm/issue/7/drawterm-emulation-of-2-mouse-button-does#comment-16264332
--- gui-x11/x11.c Sun Jan 02 18:33:44 2011 -0500
+++ gui-x11/x11.c Sat May 05 01:00:27 2012 -0700
@@ -1340,8 +1340,12 @@
ms.buttons |= 1;
if(s & Button2Mask)
ms.buttons |= 2;
- if(s & Button3Mask)
- ms.buttons |= 4;
+ if(s & Button3Mask){
+ if (s & ShiftMask)
+ ms.buttons |= 2;
+ else
+ ms.buttons |= 4;
+ }
if(s & Button4Mask)
ms.buttons |= 8;
if(s & Button5Mask)

View File

@ -2,7 +2,7 @@
pkgname=drawterm
version=0.0.20130621
_hghash=b4e2f62f737e
revision=1
revision=2
makedepends="libX11-devel libXt-devel"
short_desc="Connect to Plan 9 CPU servers from other operating systems"
maintainer="Enno Boland <gottox@voidlinux.eu>"