xsetpointer deprecated?

Peter Hutterer peter.hutterer at who-t.net
Mon Jan 5 14:09:59 PST 2009


On Mon, Jan 05, 2009 at 10:18:25AM +0100, Philipp Kerling wrote:
> Hi,
> 
> Am Montag, den 05.01.2009, 10:53 +1000 schrieb Peter Hutterer:
> > On Fri, Jan 02, 2009 at 12:32:52PM +0100, Philipp Kerling wrote:
> > > the xorg utility xsetpointer reports that it is deprecated for XInput
> > > versions >= 1.4. It still works fine even in newer ones. What exactly
> > > has been deprecated and what functions should be used instead?
> > 
> > xsetpointer changes options on the core pointer device. since 1.4, the core
> > pointer device is just a virtual device, with all physical devices hanging off
> > it. it is recommended that the physical devices are configured one-by-one
> > instead (try the "xinput" tool).
> > 
> > the problem with xsetpointer is simply that because it only knows about the
> > core pointer, it forces the core pointer configuration onto all other devices,
> > overwriting a per-device configuration.
> Thanks for the hint. What I want to do is remove a device from the
> virtual core pointer so that I can exclusively use it. xsetpointer
> allowed me to do that, but I couldn't find a way to do the same thing
> with the xinput utility, at least not when using XInput 1.4. Do I have
> to use XInput 2 for that to work?
 
Setting option "CoreEvents" "false" in the config would probably be
what you want here.

Otherwise, you'd have to grab both device and pointer + keyboard and just drop
all core events for the time being.

Cheers,
  Peter



More information about the xorg mailing list