mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
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:
parent
0c5ff5efab
commit
2e12de96ca
4 changed files with 44 additions and 0 deletions
|
|
@ -61,4 +61,15 @@ typedef struct _drmModeModeInfo drmModeModeInfo;
|
|||
struct wlr_output_mode *wlr_drm_connector_add_mode(struct wlr_output *output,
|
||||
const drmModeModeInfo *mode);
|
||||
|
||||
/**
|
||||
* Get the connector's panel orientation.
|
||||
*
|
||||
* On some devices the panel is mounted in the casing in such a way that the
|
||||
* top side of the panel does not match with the top side of the device. This
|
||||
* function returns the output transform which needs to be applied to compensate
|
||||
* for this.
|
||||
*/
|
||||
enum wl_output_transform wlr_drm_connector_get_panel_orientation(
|
||||
struct wlr_output *output);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue