]> diplodocus.org Git - xorg-xinput/commitdiff
Create the float property if it doesn't exist.
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 1 May 2009 01:22:53 +0000 (11:22 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 1 May 2009 01:24:59 +0000 (11:24 +1000)
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 <simon.thum@gmx.de>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/property.c

index a21edc67077e88d0888d655bf132a5923a4bdf8d..db46059e6edf8ab43b5e0d61448ef55ccfbcc6a5 100644 (file)
@@ -68,7 +68,7 @@ print_property(Display *dpy, XDevice* dev, Atom property)
                            AnyPropertyType, &act_type, &act_format,
                            &nitems, &bytes_after, &data) == Success)
     {
                            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;
 
 
         ptr = data;