]> diplodocus.org Git - xorg-xinput/blobdiff - src/list.c
xi2 test: add two missing breaks.
[xorg-xinput] / src / list.c
index daebf3fca4d8271b7a9b91277c3907d15846f27a..05f58f58d89663d6bd97a5a2f248bbe5f7e77e38 100644 (file)
@@ -243,7 +243,6 @@ list_xi2(Display    *display,
     }
 
     info = XIQueryDevice(display, XIAllDevices, &ndevices);
-    dev = info;
 
     for(i = 0; i < ndevices; i++)
     {
@@ -270,6 +269,16 @@ list_xi2(Display   *display,
         }
     }
 
+    for (i = 0; i < ndevices; i++)
+    {
+        dev = &info[i];
+        if (dev->use == XIFloatingSlave)
+        {
+            printf("∼ ");
+            print_info_xi2(display, dev, shortformat);
+        }
+    }
+
 
     XIFreeDeviceInfo(info);
     return EXIT_SUCCESS;