core: Fix meta_screen_get_current_monitor

fixes 4595209346

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>
This commit is contained in:
Marc-Antoine Perennou 2012-06-11 10:46:57 +02:00
parent dc50ccf9b7
commit 277e8bdad9

View File

@ -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.
*/