From: Peter Hutterer Date: Fri, 1 May 2009 01:22:53 +0000 (+1000) Subject: Create the float property if it doesn't exist. X-Git-Url: https://diplodocus.org/git/xorg-xinput/commitdiff_plain/4b4b2e3f31cf08073887d8583997eb3340a6c2e1?ds=sidebyside;hp=42dca922d287ffddcf2185ca96738f1505a04c27 Create the float property if it doesn't exist. If we don't have the float property we won't be able to use float properties for device configuration since the drivers may not understand it. We might still want to apply properties for client settings though. Reported-by: Simon Thum Signed-off-by: Peter Hutterer --- diff --git a/src/property.c b/src/property.c index a21edc6..db46059 100644 --- a/src/property.c +++ b/src/property.c @@ -68,7 +68,7 @@ print_property(Display *dpy, XDevice* dev, Atom property) AnyPropertyType, &act_type, &act_format, &nitems, &bytes_after, &data) == Success) { - Atom float_atom = XInternAtom(dpy, "FLOAT", False); + Atom float_atom = XInternAtom(dpy, "FLOAT", True); ptr = data;