diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2007-12-14 22:29:45 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2007-12-14 22:29:45 +0000 |
commit | bcdcb9dcf0a4a764031c560d02259aec5bc78d39 (patch) | |
tree | e039b075c3a921c85b832f5585aa7e812a943696 /driver | |
parent | 46f7387bbdb2cf211a1d8c5849dd2a6457e62422 (diff) |
Merge from X.Org -current:
Don't check if the device is a core device or not.
Remove call to xf86IsCore (doesn't exist anymore anyway) and unconditionally
try to generate ProximityEvents. The device should not bother whether it's a
core event or not, it's all handled in the dix now.
pointed to by sthen@.
Diffstat (limited to 'driver')
-rw-r--r-- | driver/xf86-input-hyperpen/src/xf86HyperPen.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/driver/xf86-input-hyperpen/src/xf86HyperPen.c b/driver/xf86-input-hyperpen/src/xf86HyperPen.c index b109787a4..59cd36582 100644 --- a/driver/xf86-input-hyperpen/src/xf86HyperPen.c +++ b/driver/xf86-input-hyperpen/src/xf86HyperPen.c @@ -689,7 +689,7 @@ xf86HypReadInput(LocalDevicePtr local) { HyperPenDevicePtr priv = (HyperPenDevicePtr) local->private; int len, loop; - int is_core_pointer, is_absolute; + int is_absolute; int f_keys, f_key, tip; int x, y, bx, by, barrel, barrel1, prox, pressure, button, push; int hw_pressure; @@ -791,16 +791,10 @@ is_absolute = stylus; device = local->dev; - - - - is_core_pointer = xf86IsCorePointer(device); - /* coordonates are ready we can send events */ if ((prox) && !(f_keys)) { if (!(priv->hypOldProximity)) - if (!is_core_pointer) xf86PostProximityEvent(device, 1, 0, 3, x, y, pressure); if ((is_absolute && ((priv->hypOldX != x) || @@ -854,9 +848,8 @@ is_absolute = stylus; } else { /* !PROXIMITY */ /* Any changes in buttons are ignored when !proximity */ - if (!is_core_pointer) - if (priv->hypOldProximity) - xf86PostProximityEvent(device, 0, 0, 3, x, y, pressure); + if (priv->hypOldProximity) + xf86PostProximityEvent(device, 0, 0, 3, x, y, pressure); priv->hypOldProximity = 0; } } |