backend/drm: add support for panel orientation

Expose the panel orientation with wlr_drm_connector_get_panel_orientation.
Leave it to the compositor to consume this information and configure the
output accordingly.

Closes: https://github.com/swaywm/wlroots/issues/1581
This commit is contained in:
Simon Ser 2021-09-19 16:36:23 +02:00 committed by Simon Zeni
parent 0c5ff5efab
commit 2e12de96ca
4 changed files with 44 additions and 0 deletions

View file

@ -26,6 +26,7 @@ static const struct prop_info connector_info[] = {
{ "PATH", INDEX(path) },
{ "link-status", INDEX(link_status) },
{ "non-desktop", INDEX(non_desktop) },
{ "panel orientation", INDEX(panel_orientation) },
{ "subconnector", INDEX(subconnector) },
{ "vrr_capable", INDEX(vrr_capable) },
#undef INDEX