[gnome-control-center/wip/benzea/display-settings-widget: 11/26] display: Compare configurations without monitor offset
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/benzea/display-settings-widget: 11/26] display: Compare configurations without monitor offset
- Date: Tue, 29 Jan 2019 10:47:29 +0000 (UTC)
commit 1dc29eb00971899897e1c995eadaf901d0e9adae
Author: Benjamin Berg <bberg redhat com>
Date: Tue Jan 22 13:34:22 2019 +0100
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.
panels/display/cc-display-config-dbus.c | 3 +++
1 file changed, 3 insertions(+)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]