[PATCH xinput 4/4] Enclose button labels with quotes to improve readability
Peter Hutterer
peter.hutterer at who-t.net
Thu Aug 18 23:35:30 PDT 2011
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/list.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/list.c b/src/list.c
index 46b8bd8..236011e 100644
--- a/src/list.c
+++ b/src/list.c
@@ -159,7 +159,10 @@ print_classes_xi2(Display* display, XIAnyClassInfo **classes,
for (j = 0; j < b->num_buttons; j++)
{
name = (b->labels[j]) ? XGetAtomName(display, b->labels[j]) : NULL;
- printf(" %s", (name) ? name : "None");
+ if (name)
+ printf(" \"%s\"", name);
+ else
+ printf(" None");
XFree(name);
}
printf("\n");
--
1.7.6
More information about the xorg-devel
mailing list