]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: only return active screens in get_screen_most
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 2 Mar 2010 14:45:03 +0000 (15:45 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 2 Mar 2010 14:45:03 +0000 (15:45 +0100)
src/randr.c

index d56f01f09ae97c3b6d1bb35b9d741780ee01cce7..cc9efb25af0bb678a4098d0eeec9da2b706f38a3 100644 (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) { \