[mutter/gnome-3-10] monitorManager: Fix logic bug in make_logical_config
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-10] monitorManager: Fix logic bug in make_logical_config
- Date: Sun, 2 Feb 2014 14:16:59 +0000 (UTC)
commit 099059c930e9520147b59a3fe40232e421818844
Author: Adel Gadllah <adel gadllah gmail com>
Date: Sun Feb 2 15:09:18 2014 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/monitor.c b/src/core/monitor.c
index 9ec0c2a..a07571d 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))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]