display: Don't do automatic layout adjustments with the new API
The new API checks with mutter every time update_apply_button() is called and mutter is very strict about this so it already does these adjustments internally. https://bugzilla.gnome.org/show_bug.cgi?id=782785
This commit is contained in:
parent
e1d5885ad4
commit
39c6db2772
1 changed files with 15 additions and 8 deletions
|
@ -2398,6 +2398,12 @@ show_setup_dialog (CcDisplayPanel *panel)
|
||||||
|
|
||||||
sanity_check_rotation (priv->current_output);
|
sanity_check_rotation (priv->current_output);
|
||||||
|
|
||||||
|
/* The new API checks with mutter every time
|
||||||
|
update_apply_button() is called and mutter is very
|
||||||
|
strict about this so it already does these adjustments
|
||||||
|
internally. */
|
||||||
|
if (!priv->have_new_dbus_api)
|
||||||
|
{
|
||||||
/* if the display was previously in clone mode, ensure the outputs
|
/* if the display was previously in clone mode, ensure the outputs
|
||||||
* are arranged correctly */
|
* are arranged correctly */
|
||||||
if ((was_clone && !clone))
|
if ((was_clone && !clone))
|
||||||
|
@ -2408,6 +2414,7 @@ show_setup_dialog (CcDisplayPanel *panel)
|
||||||
priv->current_output,
|
priv->current_output,
|
||||||
old_width, old_height, rotation);
|
old_width, old_height, rotation);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* check rotation */
|
/* check rotation */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue