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] Re: [PATCH] input/xen-fbfront: advertise either absolute or

To: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] input/xen-fbfront: advertise either absolute or relative coordinates
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Mon, 14 Mar 2011 11:01:44 +0100
Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, linux-input@xxxxxxxxxxxxxxx
Delivery-date: Mon, 14 Mar 2011 03:02:59 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1300096920; l=1719; s=domk; d=aepfle.de; h=In-Reply-To:Content-Type:MIME-Version:References:Subject:Cc:To:From: Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=/F+y96jxNJNXb9o2eOAKF87BT74=; b=mP9yyubipCWaVrYSf3ChaD4+jKFnvOUaGVvnni3Qp1mdxj+H9DIqf69badUdkX9mjPc ZSAz5X5b3y1tBigK4cEeb1j4ELWwAfCa31+pRSzIOzGBSTvWbSH+iRjMbY42+AryZIevV F9kC2LjmTngcV2ePcOyu9AoD88M5WZe6U3w=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110313062411.GB31566@xxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <alpine.DEB.2.00.1103111124400.2968@kaball-desktop> <20110313062411.GB31566@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21 (2010-09-15)
On Sat, Mar 12, Dmitry Torokhov wrote:

> Hi Stefano,
> 
> On Fri, Mar 11, 2011 at 11:30:10AM +0000, Stefano Stabellini wrote:
> > From: Olaf Hering <olaf@xxxxxxxxx>
> > 
> > A virtualized display device is usually viewed with the vncviewer
> > application, either by 'xm vnc domU' or with vncviewer localhost:port.
> > vncviewer and the RFB protocol provides absolute coordinates to the
> > virtual display. These coordinates are either passed through to a PV
> > guest or converted to relative coordinates for a HVM guest.
> > 
> > A PV guest receives these coordinates and passes them to the kernels
> > evdev driver. There it can be picked up by applications such as the
> > xorg-input drivers. Using absolute coordinates avoids issues such as
> > guest mouse pointer not tracking host mouse pointer due to wrong mouse
> > acceleration settings in the guests X display.
> > 
> > Advertise either absolute or relative coordinates to the input system
> > and the evdev driver, depending on what dom0 provides. The xorg-input
> > driver prefers relative coordinates even if a devices provides both.
> 
> So if I am reading this correctly the original version handled changes
> in backend capabilities and could switch between delivering either
> relative or absolute coordinates. The new version selects the
> capabilities at boot time and sticks with them. Was it really the
> intended behavior?

Yes, as mentioned in the description above, using absolute coordinates in
the guests X11 is prefered because it avoids that the guest mouse
pointer gets out of sync with the host/desktop mouse pointer.
Very old Xen versions did not send absolute coordinates, but recent
versions do.

Olaf

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel