diff --git a/src/core/monitor.c b/src/core/monitor.c index 9ec0c2a80..a07571d4e 100644 --- a/src/core/monitor.c +++ b/src/core/monitor.c @@ -406,7 +406,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)) {