diff options
author | Adel Gadllah <adel.gadllah@gmail.com> | 2014-02-02 15:09:18 +0100 |
---|---|---|
committer | Adel Gadllah <adel.gadllah@gmail.com> | 2014-02-02 15:17:08 +0100 |
commit | 5dd2e4bc72a324461909c85072a12c626ff53248 (patch) | |
tree | 3e67d58f403c70aef680cdb97e5c5a360b1f8cbb /src | |
parent | 93ee413df21084212415d7cdc80373d53bb52da4 (diff) | |
download | mutter-5dd2e4bc72a324461909c85072a12c626ff53248.tar.gz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/core/monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |