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>
This commit is contained in:
parent
dc50ccf9b7
commit
277e8bdad9
@ -2140,7 +2140,7 @@ int
|
|||||||
meta_screen_get_current_monitor (MetaScreen *screen)
|
meta_screen_get_current_monitor (MetaScreen *screen)
|
||||||
{
|
{
|
||||||
if (screen->n_monitor_infos == 1)
|
if (screen->n_monitor_infos == 1)
|
||||||
return &screen->monitor_infos[0];
|
return 0;
|
||||||
|
|
||||||
/* Sadly, we have to do it this way. Yuck.
|
/* Sadly, we have to do it this way. Yuck.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user