Bugfix: consider inactive monitors when querying (#2862)

fixes #2815
fixes #2594
This commit is contained in:
Michael Stapelberg
2017-08-20 00:19:45 +02:00
committed by GitHub
parent e6682f862b
commit 4d93d26484
3 changed files with 11 additions and 9 deletions

View File

@ -75,10 +75,11 @@ void randr_disable_output(Output *output);
Output *get_first_output(void);
/**
* Returns the output with the given name if it is active (!) or NULL.
* Returns the output with the given name or NULL.
* If require_active is true, only active outputs are considered.
*
*/
Output *get_output_by_name(const char *name);
Output *get_output_by_name(const char *name, const bool require_active);
/**
* Returns the active (!) output which contains the coordinates x, y or NULL