diff options
author | Marc-Antoine Perennou <Marc-Antoine@Perennou.com> | 2012-06-11 10:46:57 +0200 |
---|---|---|
committer | Marc-Antoine Perennou <Marc-Antoine@Perennou.com> | 2012-06-11 10:53:21 +0200 |
commit | 277e8bdad9cd8e6b621814312f1f651eff993413 (patch) | |
tree | 6b62f19310ada1a7bf05bb2956457a689ca374a1 | |
parent | dc50ccf9b722bc49ae5e7ae242e1973c473ca33b (diff) | |
download | mutter-277e8bdad9cd8e6b621814312f1f651eff993413.tar.gz |
core: Fix meta_screen_get_current_monitor
fixes 45952093463e5d354e4f0d7c4ded6ab0d601d959
We're supposed to return an index from here now, no longer a pointer
to the current monitor.
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
-rw-r--r-- | src/core/screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/screen.c b/src/core/screen.c index ec6169418..ea582b5de 100644 --- a/src/core/screen.c +++ b/src/core/screen.c @@ -2140,7 +2140,7 @@ int meta_screen_get_current_monitor (MetaScreen *screen) { if (screen->n_monitor_infos == 1) - return &screen->monitor_infos[0]; + return 0; /* Sadly, we have to do it this way. Yuck. */ |