output: Add output_is_usable() helper

This commit is contained in:
John Lindgren 2023-02-16 12:24:27 -05:00
parent fe7edf82d9
commit 6efc6a9db4
5 changed files with 20 additions and 18 deletions

View file

@ -407,10 +407,9 @@ osd_update(struct server *server)
struct output *output;
wl_list_for_each(output, &server->outputs, link) {
destroy_osd_nodes(output);
if (!output->wlr_output->enabled) {
continue;
if (output_is_usable(output)) {
display_osd(output);
}
display_osd(output);
}
/* Outline current window */