Bugfix: only return active screens in get_screen_most

This commit is contained in:
Michael Stapelberg 2010-03-02 15:45:03 +01:00
parent 4e69bd65c0
commit e3e7ebe23a
1 changed files with 3 additions and 0 deletions

View File

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