Bugfix: only return active screens in get_screen_most
This commit is contained in:
parent
4e69bd65c0
commit
e3e7ebe23a
|
@ -119,6 +119,9 @@ Output *get_screen_most(direction_t direction, Output *current) {
|
||||||
Output *screen, *candidate = NULL;
|
Output *screen, *candidate = NULL;
|
||||||
int position = 0;
|
int position = 0;
|
||||||
TAILQ_FOREACH(screen, &outputs, outputs) {
|
TAILQ_FOREACH(screen, &outputs, outputs) {
|
||||||
|
if (!screen->active)
|
||||||
|
continue;
|
||||||
|
|
||||||
/* Repeated calls of WIN determine the winner of the comparison */
|
/* Repeated calls of WIN determine the winner of the comparison */
|
||||||
#define WIN(variable, condition) \
|
#define WIN(variable, condition) \
|
||||||
if (variable condition) { \
|
if (variable condition) { \
|
||||||
|
|
Loading…
Reference in New Issue