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; struct output* self = data;
strlcpy(self->name, name, sizeof(self->name)); strlcpy(self->name, name, sizeof(self->name));
self->is_headless = strncmp( self->is_headless =
name, "HEADLESS-", strlen("HEADLESS-")) == 0; (strncmp(name, "HEADLESS-", strlen("HEADLESS-")) == 0) ||
(strncmp(name, "NOOP-", strlen("NOOP-")) == 0);
nvnc_trace("Output %u name: %s, headless: %s", self->id, self->name, nvnc_trace("Output %u name: %s, headless: %s", self->id, self->name,
self->is_headless ? "yes" : "no"); self->is_headless ? "yes" : "no");