From 1959e123a2a376604c691c9143f56148d6553579 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 6683ceb..740041c 100644 --- a/xrandr.c +++ b/xrandr.c @@ -3264,12 +3264,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.1fMHz\n", mode->name, (int)mode->id, (double)mode->dotClock / 1000000.0); -- 1.7.10.4