WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Support all 8 mouse buttons in PVFB

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Support all 8 mouse buttons in PVFB
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Date: Wed, 7 Feb 2007 03:29:44 +0000
Delivery-date: Tue, 06 Feb 2007 19:29:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
The VNC protocol allows upto 8 mouse buttons. The Dom0 -> DomU paravirt FB
protocol supports upto 8 mouse buttons. The VNC server in Dom0 simply drops
all mouse buttons > 3. Similarly when declaring capabilities to the kernel,
the xenkdb.c driver in DomU simply says it only supports 3 buttons, but evdev
is perfectly capable of exposing all 8 buttons. These two limitations both
mean that the mouse scroll wheels don't work in paravirt DomU.

The fixes for both these issues are trivial - just add in the relevant evdev
constants for buttons 4 -> 8.  Now I don't actually have an 8 button mouse
handy to explicitly test upto 8, but I've no reason to believe that buttons
4-8 have any non-linear ordering - only right & middle buttons seem to be
wierd in this regard. I've tested with a 5 button mouse & confirmed the
scrollwheel is operating correctly. ie, if you run 'xev' in Dom0 and 'xev'
in DomU you see the same X mouse button events in both cases, and the scroll
up & down functions work correctly.

I'm attaching two patches. One fixes the fbfront/xenkbd.c driver (it applies
against xen-devel - should be trivial to fixup against Gerd's latest patch).
The other patch fixes the VNC server - it also removes a c99-ism since we
don't compile with c99 enabled.

    Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

Attachment: xen-kernel-mouse-buttons.patch
Description: Text document

Attachment: xen-vnc-mouse-buttons.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Support all 8 mouse buttons in PVFB, Daniel P. Berrange <=