From abebb4775b72daf3ab75f8aba70f4e310ead61c9 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Sun, 2 Feb 2014 15:09:18 +0100 Subject: [PATCH] monitorManager: Fix logic bug in make_logical_config The code that prevents the creation of multiple MonitorInfos for clones wasn't working due to using the wrong index when getting the already created info so fix that to use the correct one. https://bugzilla.gnome.org/show_bug.cgi?id=710610 --- src/core/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/monitor.c b/src/core/monitor.c index 93303814f..4b5a14418 100644 --- a/src/core/monitor.c +++ b/src/core/monitor.c @@ -404,7 +404,7 @@ make_logical_config (MetaMonitorManager *manager) for (j = 0; j < monitor_infos->len; j++) { - MetaMonitorInfo *info = &g_array_index (monitor_infos, MetaMonitorInfo, i); + MetaMonitorInfo *info = &g_array_index (monitor_infos, MetaMonitorInfo, j); if (meta_rectangle_equal (&crtc->rect, &info->rect)) {