drawterm: fix middle click emulation
This commit is contained in:
parent
3af247912d
commit
9dd1558b26
|
@ -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)
|
|
@ -2,7 +2,7 @@
|
||||||
pkgname=drawterm
|
pkgname=drawterm
|
||||||
version=0.0.20130621
|
version=0.0.20130621
|
||||||
_hghash=b4e2f62f737e
|
_hghash=b4e2f62f737e
|
||||||
revision=1
|
revision=2
|
||||||
makedepends="libX11-devel libXt-devel"
|
makedepends="libX11-devel libXt-devel"
|
||||||
short_desc="Connect to Plan 9 CPU servers from other operating systems"
|
short_desc="Connect to Plan 9 CPU servers from other operating systems"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
||||||
|
|
Loading…
Reference in New Issue