mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-09 08:21:01 -04:00
wayland: use xdg_output's description if there's no 'model'
This commit is contained in:
parent
bc82d4ee28
commit
32e70263f9
2 changed files with 13 additions and 4 deletions
|
|
@ -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" */
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue