mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 10:30:47 -05:00
output-kms: Fix "panel orientation" kms-prop being ignored on native outputs
Actually store the panel_orientation_transform in the meta_output, so
that it gets honored by the core code.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/927
(cherry picked from commit a5f986259f
)
This commit is contained in:
parent
eb78b7d0d1
commit
c462544f78
@ -295,7 +295,6 @@ meta_create_kms_output (MetaGpuKms *gpu_kms,
|
|||||||
MetaOutput *output;
|
MetaOutput *output;
|
||||||
MetaOutputKms *output_kms;
|
MetaOutputKms *output_kms;
|
||||||
const MetaKmsConnectorState *connector_state;
|
const MetaKmsConnectorState *connector_state;
|
||||||
MetaMonitorTransform panel_orientation_transform;
|
|
||||||
uint32_t connector_id;
|
uint32_t connector_id;
|
||||||
GArray *crtcs;
|
GArray *crtcs;
|
||||||
GList *l;
|
GList *l;
|
||||||
@ -318,8 +317,9 @@ meta_create_kms_output (MetaGpuKms *gpu_kms,
|
|||||||
|
|
||||||
connector_state = meta_kms_connector_get_current_state (kms_connector);
|
connector_state = meta_kms_connector_get_current_state (kms_connector);
|
||||||
|
|
||||||
panel_orientation_transform = connector_state->panel_orientation_transform;
|
output->panel_orientation_transform =
|
||||||
if (meta_monitor_transform_is_rotated (panel_orientation_transform))
|
connector_state->panel_orientation_transform;
|
||||||
|
if (meta_monitor_transform_is_rotated (output->panel_orientation_transform))
|
||||||
{
|
{
|
||||||
output->width_mm = connector_state->height_mm;
|
output->width_mm = connector_state->height_mm;
|
||||||
output->height_mm = connector_state->width_mm;
|
output->height_mm = connector_state->width_mm;
|
||||||
|
Loading…
Reference in New Issue
Block a user