From 98f2030c78e57a1255bb44ecbb777133aa9925fc Mon Sep 17 00:00:00 2001 From: chrysn Date: Mon, 10 Oct 2011 00:17:32 +0200 Subject: [PATCH 1/2] distinguish unassigned modes (bug 35149) --- xrandr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xrandr.c b/xrandr.c index 366f6dc..cf8793c 100644 --- a/xrandr.c +++ b/xrandr.c @@ -3691,12 +3691,18 @@ main (int argc, char **argv) free (mode_shown); } } + Bool unassigned_message_printed = False; for (m = 0; m < res->nmode; m++) { XRRModeInfo *mode = &res->modes[m]; if (!(mode->modeFlags & ModeShown)) { + if (!unassigned_message_printed) + { + printf ("Not assigned to any output:\n"); + unassigned_message_printed = True; + } printf (" %s (0x%x) %6.3fMHz\n", mode->name, (int)mode->id, (double)mode->dotClock / 1000000.0); -- 2.1.4