From e3e7ebe23ae5db9ab5c4959e08ecdac16448a7bd Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 2 Mar 2010 15:45:03 +0100 Subject: [PATCH] Bugfix: only return active screens in get_screen_most --- src/randr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/randr.c b/src/randr.c index d56f01f0..cc9efb25 100644 --- a/src/randr.c +++ b/src/randr.c @@ -119,6 +119,9 @@ Output *get_screen_most(direction_t direction, Output *current) { Output *screen, *candidate = NULL; int position = 0; TAILQ_FOREACH(screen, &outputs, outputs) { + if (!screen->active) + continue; + /* Repeated calls of WIN determine the winner of the comparison */ #define WIN(variable, condition) \ if (variable condition) { \