[PULL] input fixes Jan 2013

Keith Packard keithp at keithp.com
Fri Feb 8 09:01:56 PST 2013


Peter Hutterer <peter.hutterer at who-t.net> writes:

> Alan Coopersmith (1):
>       Xext: avoid null-pointer dereference in XTestFakeInput (#59937)
>
> Andreas Wettstein (1):
>       xkb: Fix repeat behaviour of redirect and message actions
>
> Carlos Garnacho (1):
>       dix: Set focus field on XI2 crossing events
>
> Peter Hutterer (15):
>       test/signal-logging: simplify tests using sprintf
>       os: silently ignore length modifiers in pnprintf
>       os: add support for %f to pnprintf

I added a patch to fix the fraction display -- it was truncating instead
of rounding (yay C float->int conversion!).

--- a/os/utils.c
+++ b/os/utils.c
@@ -1999,7 +1999,7 @@ FormatDouble(double dbl, char *string)
     int slen = 0;
     uint64_t frac;
 
-    frac = (dbl > 0 ? dbl : -dbl) * 100.0;
+    frac = (dbl > 0 ? dbl : -dbl) * 100.0 + 0.5;
     frac %= 100;
 
>       dmx: don't include dmx-config.h from xdmxconfig (#37502)
>       Xi: limit valuator copy to valuator array size (#59939)
>       include: fix typo in list description
>       Xext: pass the current screen to miProcessDeviceEvent() from xtest calls
>       Xext: if a root window is given in XTestFakeInput, move to that
>       dix: fix ptraccel debugging printfs
>       dix: add some more info to a ptraccel debug msg
>       dix: use BUG_RETURN_VAL for an error message
>       dix: unify prefix for ptraccel debugging in DebugAccelF macro
>       dix: pre-scale relative events from abs devices to desktop ratio (#31636)
>       Merge branch 'ptraccel-fixes' into for-keith
>       dix: when shutting down slave devices, shut down xtest devices last
>
> Sybren van Elderen (1):
>       dix: when scaling from desktop coord, take the total desktop size (#51904)
>
> Ted Felix (1):
>       xfree86: bail on misformed acpi strings (#73227)

Keith Packard (1):
    os: Round fraction in pnprintf %f format

Merged.
   7fe5e6d..b173eb2  master -> master

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20130208/1794fe6e/attachment.pgp>


More information about the xorg-devel mailing list