osd: add config option to disable osd

This commit is contained in:
Flrian 2023-03-08 15:26:49 +01:00 committed by Johan Malm
parent 5aa5c12371
commit 00ebcdc290
5 changed files with 17 additions and 6 deletions

View file

@ -403,12 +403,14 @@ osd_update(struct server *server)
return;
}
/* Display the actual OSD */
struct output *output;
wl_list_for_each(output, &server->outputs, link) {
destroy_osd_nodes(output);
if (output_is_usable(output)) {
display_osd(output);
if (rc.cycle_view_osd) {
/* Display the actual OSD */
struct output *output;
wl_list_for_each(output, &server->outputs, link) {
destroy_osd_nodes(output);
if (output_is_usable(output)) {
display_osd(output);
}
}
}