diff options
author | Benjamin Berg <bberg@redhat.com> | 2019-01-22 13:34:22 +0100 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2019-01-29 12:05:43 +0100 |
commit | d9aab366096a55d6f7a8378da7ad00d455e53af1 (patch) | |
tree | c192da8660665a05293333e5b496c0a5f4c62e8d | |
parent | dde97ecb2ed695088504c1074c8435a4fc37bcaf (diff) | |
download | gnome-control-center-d9aab366096a55d6f7a8378da7ad00d455e53af1.tar.gz |
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.
-rw-r--r-- | panels/display/cc-display-config-dbus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/panels/display/cc-display-config-dbus.c b/panels/display/cc-display-config-dbus.c index b74160fdc..efb91b346 100644 --- a/panels/display/cc-display-config-dbus.c +++ b/panels/display/cc-display-config-dbus.c @@ -1049,6 +1049,9 @@ cc_display_config_dbus_equal (CcDisplayConfig *pself, CcDisplayConfigDBus *other = CC_DISPLAY_CONFIG_DBUS (pother); 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) { CcDisplayMonitorDBus *m1 = l->data; |