From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <0cd53c93-5aa7-4909-ad35-9389532bdcd0@u20g2000vbq.googlegroups.com> References: <0cd53c93-5aa7-4909-ad35-9389532bdcd0@u20g2000vbq.googlegroups.com> Date: Wed, 25 Nov 2009 11:08:48 +0100 Message-ID: From: yy To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [9fans] Drawterm Trouble Topicbox-Message-UUID: 9f7b43d2-ead5-11e9-9d60-3106f5b1d025 2009/11/24 Martin Gansel : > Drawterm for Linux(I currently run Arch Linux) doesn't allow me to use > the middle mouse button emulation(Shift + right mouse button). > For example if I run Acme, I can't exec any command via middle button > emulation. There is simply no reaction. Is there any known bug? > Drawterm for Windows works perfectly. > > Martin Gansel > > It is not implemented, but it has an easy solution. I sent the fix for 9vx to this list some time ago (http://9fans.net/archive/2009/03/250). I will send to Russ patches for 9vx and drawterm fixing this issue, but I cannot guarantee when (or even if) they will be applied. This was the fix for 9vx: diff -r a18e9872164b src/9vx/x11/x11-itrans.c --- a/src/9vx/x11/x11-itrans.c Wed Dec 10 03:29:15 2008 -0800 +++ b/src/9vx/x11/x11-itrans.c Mon Mar 09 16:29:39 2009 +0100 @@ -229,7 +229,7 @@ if(s & Button2Mask) m->buttons |= 2; if(s & Button3Mask) - m->buttons |= 4; + m->buttons |= s & ShiftMask ? 2 : 4; if(s & Button4Mask) m->buttons |= 8; if(s & Button5Mask) You want to apply a similar patch to gui-x11/screen.c -- - yiyus || JGL . 4l77.com