mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
monitor-manager: Update orientation based config when panel_orientation_managed changes
The orientation reported by the orientation_manager may have changed while panel_orientation_managed was false. So when panel_orientation_managed changes to true we should re-check the orientation. This fixes the orientation not being correct when e.g. taking a 360 degree hinges 2-in-1 in clamshell mode (so landscape orientation) and then folding it into tablet mode while holding it in portrait orientation. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1506
This commit is contained in:
parent
4c12208363
commit
1b13f50582
@ -785,6 +785,10 @@ update_panel_orientation_managed (MetaMonitorManager *manager)
|
||||
|
||||
meta_dbus_display_config_set_panel_orientation_managed (manager->display_config,
|
||||
manager->panel_orientation_managed);
|
||||
|
||||
/* The orientation may have changed while it was unmanaged */
|
||||
if (panel_orientation_managed)
|
||||
handle_orientation_change (orientation_manager, manager);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user