diff --git a/src/core/monitor.c b/src/core/monitor.c index 5b5093c79..58f155fa9 100644 --- a/src/core/monitor.c +++ b/src/core/monitor.c @@ -290,7 +290,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)) {