diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2013-02-28 12:01:53 -0800 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2013-02-28 14:21:55 -0800 |
commit | eb17ad8adc9400f6ed252872f13ccf5551f9e2e9 (patch) | |
tree | 1724f5628779e97fbe74811c7d799e04e736adfc | |
parent | 222f245fb3a00308cb3ff491f5c84ac9c69c3253 (diff) |
Print spaces between XA_ATOM property values
Commit b26fd532b3dab222956ea27eef4e41345978b5b2 redid how xrandr prints
properties. It neglected to put spaces between the values of XA_ATOM
properties, so they all run together. For example,
audio: auto
supported: force-dvioffautoon
Fix this by putting a space after each atom name. In addition, some drivers
create property values with spaces in them, so put commas between entries to
disambiguate. For example,
Broadcast RGB: Automatic
supported: Automatic, Full, Limited 16:235
Do the same for properties with multiple valid ranges.
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | xrandr.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3560,6 +3560,8 @@ main (int argc, char **argv) print_output_property_value (False, 32, actual_type, (unsigned char *) &(propinfo->values[k * 2 + 1])); printf (")"); + if (k < propinfo->num_values / 2 - 1) + printf (", "); } printf ("\n"); } @@ -3570,6 +3572,8 @@ main (int argc, char **argv) { print_output_property_value (False, 32, actual_type, (unsigned char *) &(propinfo->values[k])); + if (k < propinfo->num_values - 1) + printf (", "); } printf ("\n"); } |