]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/xterm.c (xi_populate_device_from_info): Minor ifdef cleanup.
authorPo Lu <luangruo@yahoo.com>
Tue, 9 Aug 2022 11:55:47 +0000 (19:55 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 9 Aug 2022 11:56:09 +0000 (19:56 +0800)
src/xterm.c

index 806933fd07ed99d75a7c4b2a632ed94df31d1510..ab43a8ec517aa3652bd3ddd9de8bc5f27e24650d 100644 (file)
@@ -5282,16 +5282,15 @@ xi_populate_device_from_info (struct xi_device_t *xi_device,
                                  * device->num_classes);
   values = NULL;
 #endif
-#ifdef HAVE_XINPUT2_2
-  xi_device->touchpoints = NULL;
-#endif
 
   xi_device->use = device->use;
+  xi_device->name = build_string (device->name);
+  xi_device->attachment = device->attachment;
+
 #ifdef HAVE_XINPUT2_2
+  xi_device->touchpoints = NULL;
   xi_device->direct_p = false;
 #endif
-  xi_device->name = build_string (device->name);
-  xi_device->attachment = device->attachment;
 
   for (c = 0; c < device->num_classes; ++c)
     {