I could have sworn there was a change to do that in the wild already, but I couldn't find it.
Thanks, - Pierre-Loup
>From 7d0720196cd89ac012fd7d0bf86cee0cffaea631 Mon Sep 17 00:00:00 2001 From: "Pierre-Loup A. Griffais" <[email protected]> Date: Wed, 19 Dec 2012 12:32:03 -0800 Subject: [PATCH] xrandr: print primary output Sample output: LVDS-0 connected primary 1920x1080+1920+120 [...] Signed-off-by: Pierre-Loup A. Griffais <[email protected]> --- xrandr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xrandr.c b/xrandr.c index 548015c..e8d24fb 100644 --- a/xrandr.c +++ b/xrandr.c @@ -3249,6 +3249,9 @@ main (int argc, char **argv) Rotation rotations = output_rotations (output); printf ("%s %s", output_info->name, connection[output_info->connection]); + if (output->primary) { + printf(" primary"); + } if (mode) { if (crtc_info) { -- 1.7.10.4
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
