xsetpointer deprecated?
Peter Hutterer
peter.hutterer at who-t.net
Thu Jan 8 20:58:34 PST 2009
On Mon, Jan 05, 2009 at 11:34:06PM +0100, Philipp Kerling wrote:
> > 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.
> Is there really no "easy" way to do this dynamically at runtime in the
> new XInput interface now that the old one xsetpointer uses is
> deprecated? xsetpointer does exactly what I want. And if there really is
> no "new" way, how long will the "old" one be supported?
revert 2bbb12c355308d10bf123911044fbdf6ae7fb59c (reverts cleanly).
and then apply the following:
diff --git a/mi/mieq.c b/mi/mieq.c
index 6a211a1..f534c5d 100644
--- a/mi/mieq.c
+++ b/mi/mieq.c
@@ -335,7 +335,7 @@ mieqProcessInputEvents(void)
miEventQueue.head = (miEventQueue.head + 1) % QUEUE_SIZE;
type = event->u.u.type;
- master = (!dev->isMaster && dev->u.master) ? dev->u.master : NULL;
+ master = (!dev->isMaster && dev->u.master && dev->coreEvents) ? dev->u.master : NULL;
if (screenIsSaved == SCREEN_SAVER_ON)
dixSaveScreens (serverClient, SCREEN_SAVER_OFF, ScreenSaverReset);
This should restore the CoreControl for 1.6 (untested, mind you). Does this
work as you expect?
Cheers,
Peter
More information about the xorg
mailing list