From 32e70263f905ee58ba4026d57b1a5fec35c26352 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 25 Jun 2020 17:30:51 +0200 Subject: wayland: use xdg_output's description if there's no 'model' --- wayland.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'wayland.h') diff --git a/wayland.h b/wayland.h index 60f39454..ccc03ad3 100644 --- a/wayland.h +++ b/wayland.h @@ -19,7 +19,6 @@ struct monitor { struct wayland *wayl; struct wl_output *output; struct zxdg_output_v1 *xdg; - char *name; uint32_t wl_name; int x; @@ -63,8 +62,14 @@ struct monitor { float refresh; enum wl_output_subpixel subpixel; + /* From wl_output */ char *make; char *model; + + /* From xdg_output */ + char *name; + char *description; + float inch; /* e.g. 24" */ }; -- cgit v1.3