diff options
author | Rouven Czerwinski <rouven@czerwinskis.de> | 2019-12-20 10:56:59 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-20 11:00:21 +0100 |
commit | be4b9f7f5b4247ad6f1729b8d407c544ae25d040 (patch) | |
tree | 704aef32382250623d64155d1b009e00593782c2 /backend/drm | |
parent | 515679e4fed1c7c762a8c269fca09cbb195a4323 (diff) |
backend/drm: print preferred mode
While printing the supported output modes, annotate the preferred mode.
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/drm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index adbb1802..5e7369fd 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -1370,9 +1370,10 @@ void scan_drm_connectors(struct wlr_drm_backend *drm) { mode->wlr_mode.preferred = true; } - wlr_log(WLR_INFO, " %"PRId32"x%"PRId32"@%"PRId32, + wlr_log(WLR_INFO, " %"PRId32"x%"PRId32"@%"PRId32" %s", mode->wlr_mode.width, mode->wlr_mode.height, - mode->wlr_mode.refresh); + mode->wlr_mode.refresh, + mode->wlr_mode.preferred ? "(preferred)" : ""); wl_list_insert(&wlr_conn->output.modes, &mode->wlr_mode.link); } |