Skip to content
Commit 55779b3b authored by Hans de Goede's avatar Hans de Goede Committed by Florian Müllner
Browse files

monitor-manager: Fix orientation changes on devices with 90° mounted panels

Commit 2289f561 ("monitor-manager: Don't apply unneeded orientation
changes") added an early return to handle_orientation_change () in case
the transform is unchanged.

But this did not take the correction of the transform for devices
with 90° mounted panels into account causing a desired orientation
change to get skipped if the new orientation matches the corrected
logical orientation from the previous transform setting.

Fix this by calling meta_monitor_crtc_to_logical_transform () on the
transform before comparing it, matching the
meta_monitor_crtc_to_logical_transform () call in
create_for_builtin_display_rotation ().

Related: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1233
(cherry picked from commit cc9bb7c5)

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2223>
parent 593c22ea
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment