From 0049cce4d0691f055dfe9059e4c0c4ad30301db6 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 11 Feb 2011 13:31:52 +1000 Subject: Use Absolute/Relative as argument to xf86Post* xf86Post* takes an int for the is_absolute parameter. Since the XI protocol spec requires Relative to be 0 and Absolute to be 1, use those instead to make the code easier to read. Signed-off-by: Peter Hutterer --- src/emuThird.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/emuThird.c') diff --git a/src/emuThird.c b/src/emuThird.c index bdf133a..a65c24e 100644 --- a/src/emuThird.c +++ b/src/emuThird.c @@ -62,7 +62,7 @@ Evdev3BEmuPostButtonEvent(InputInfoPtr pInfo, int button, int press) { EvdevPtr pEvdev = pInfo->private; struct emulate3B *emu3B = &pEvdev->emulate3B; - int absolute = 0; + int absolute = Relative; /* if we cancel, emit the button down event at our start position, * not at the current position. Only for absolute devices though. For @@ -70,7 +70,7 @@ Evdev3BEmuPostButtonEvent(InputInfoPtr pInfo, int button, int press) * us back more than we moved and confuse the user. */ if (emu3B->flags & EVDEV_ABSOLUTE_EVENTS) - absolute = 1; + absolute = Absolute; xf86PostButtonEventP(pInfo->dev, absolute, button, press, 0, (absolute ? 2 : 0), emu3B->startpos); -- cgit v1.2.3