Skip to content
  • Hans de Goede's avatar
    monitor-config-manager: honor accelerometer value changes when there is more than 1 monitor · bcbb44fd
    Hans de Goede authored and Carlos Garnacho's avatar Carlos Garnacho committed
    Modify create_for_builtin_display_rotation to lookup the
    MetaLogicalMonitorConfig for the panel in the logical_monitor_configs
    list instead of only working when there is only 1 monitor.
    
    The goal of this change is to honor accelerometer value changes when there is
    more than 1 monitor.
    
    Note, since create_for_builtin_display_rotation is also used for handling the
    "rotate-monitor" hotkey and this commit modifies the common path of
    create_for_builtin_display_rotation this means that we will now also honor
    "rotate-monitor" hotkey keypresses when there is more than 1 monitor and
    update the builtin display rotation instead of ignoring "rotate-monitor"
    hotkey keypresses when there is more than 1 monitor. If this is deemed
    undesirable this is easy to fix, but I believe that doing things this way
    is more consistent.
    
    GNOME/mutter!959
    bcbb44fd