mi: switch miPointerSetPosition to take doubles
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 3 Oct 2011 03:10:53 +0000 (13:10 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 11 Oct 2011 02:06:56 +0000 (12:06 +1000)
commit3b36fd1b49030ead44358945f62e5abe7f4609ce
treed35339e0b8f872ec68e5ae31097efb94ed136791
parent81cfe44b1ed0de84ad1941fe2ca74bebef3fc58d
mi: switch miPointerSetPosition to take doubles

Don't switch between doubles and ints in the caller, instead take doubles in
miPointerSetPosition and do the conversion there. For full feature we should
change everything down from here for doubles too.

Functional change: previously we'd restore the remainder regardless of
screen switching/confinement (despite what the comment said). Now,
screen changing or cursor constraints will cause the remainder be clipped
off. This should happen for cursor constraints but arguably not for screen
crossing.

This also corrects a currently wrong comment about miPointerSetPosition's
input coordinates.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
dix/getevents.c
mi/mipointer.c
mi/mipointer.h