output: NOOP is another name for HEADLESS

output-management
Andri Yngvason 2023-11-19 21:25:41 +00:00
parent 11a477f92e
commit 8dbce970c0
1 changed files with 3 additions and 2 deletions

View File

@ -219,8 +219,9 @@ void output_name(void* data, struct zxdg_output_v1* xdg_output,
struct output* self = data;
strlcpy(self->name, name, sizeof(self->name));
self->is_headless = strncmp(
name, "HEADLESS-", strlen("HEADLESS-")) == 0;
self->is_headless =
(strncmp(name, "HEADLESS-", strlen("HEADLESS-")) == 0) ||
(strncmp(name, "NOOP-", strlen("NOOP-")) == 0);
nvnc_trace("Output %u name: %s, headless: %s", self->id, self->name,
self->is_headless ? "yes" : "no");