mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
backends: Check panel autorotation state before applying autorotation
So far, we've expected this signal to not happen whenever autorotation shouldn't apply (no accelerometer is a strong reason). In future commits we'll add further checks to this policy, so prevent autorotation to change the display configuration if the MetaOrientationManager signal happens but it should be ignored. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1311
This commit is contained in:
parent
4bb880f8ac
commit
a9cd81cb93
@ -685,6 +685,9 @@ orientation_changed (MetaOrientationManager *orientation_manager,
|
|||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
MetaMonitorsConfig *config;
|
MetaMonitorsConfig *config;
|
||||||
|
|
||||||
|
if (!manager->panel_orientation_managed)
|
||||||
|
return;
|
||||||
|
|
||||||
switch (meta_orientation_manager_get_orientation (orientation_manager))
|
switch (meta_orientation_manager_get_orientation (orientation_manager))
|
||||||
{
|
{
|
||||||
case META_ORIENTATION_NORMAL:
|
case META_ORIENTATION_NORMAL:
|
||||||
|
Loading…
Reference in New Issue
Block a user