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) { \