[mutter] core: Fix meta_screen_get_current_monitor
- From: Marc-Antoine Perennou <marcop src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] core: Fix meta_screen_get_current_monitor
- Date: Mon, 11 Jun 2012 12:21:28 +0000 (UTC)
commit 277e8bdad9cd8e6b621814312f1f651eff993413
Author: Marc-Antoine Perennou <Marc-Antoine Perennou com>
Date: Mon Jun 11 10:46:57 2012 +0200
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>
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 ec61694..ea582b5 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.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]