display: Compare configurations without monitor offset
When comparing configurations, the monitor positions are compared directly. This comparison will not work properly if one of the configurations has an offset. This results in the "Apply" button to show up incorrectly after moving the top/left monitor position.
This commit is contained in:
parent
dde97ecb2e
commit
d9aab36609
1 changed files with 3 additions and 0 deletions
|
@ -1049,6 +1049,9 @@ cc_display_config_dbus_equal (CcDisplayConfig *pself,
|
||||||
CcDisplayConfigDBus *other = CC_DISPLAY_CONFIG_DBUS (pother);
|
CcDisplayConfigDBus *other = CC_DISPLAY_CONFIG_DBUS (pother);
|
||||||
GList *l;
|
GList *l;
|
||||||
|
|
||||||
|
cc_display_config_dbus_ensure_non_offset_coords (self);
|
||||||
|
cc_display_config_dbus_ensure_non_offset_coords (other);
|
||||||
|
|
||||||
for (l = self->monitors; l != NULL; l = l->next)
|
for (l = self->monitors; l != NULL; l = l->next)
|
||||||
{
|
{
|
||||||
CcDisplayMonitorDBus *m1 = l->data;
|
CcDisplayMonitorDBus *m1 = l->data;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue