From: Michael Stapelberg Date: Tue, 2 Mar 2010 14:45:03 +0000 (+0100) Subject: Bugfix: only return active screens in get_screen_most X-Git-Tag: 3.e~6^2~131 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e3e7ebe23ae5db9ab5c4959e08ecdac16448a7bd;p=i3%2Fi3 Bugfix: only return active screens in get_screen_most --- 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) { \