Move monitor management API to MetaDisplay

This includes changing various users to use MetaDisplay directly, who
used MetaScreen only for this before.

https://bugzilla.gnome.org/show_bug.cgi?id=759538
This commit is contained in:
Armin Krezović
2017-08-26 21:22:34 +02:00
committed by Jonas Ådahl
parent 68f261e8e2
commit e1c67a1824
18 changed files with 293 additions and 289 deletions

View File

@ -82,14 +82,12 @@ static void
meta_test_headless_monitor_getters (void)
{
MetaDisplay *display;
MetaScreen *screen;
int index;
display = meta_get_display ();
screen = display->screen;
index = meta_screen_get_monitor_index_for_rect (screen,
&(MetaRectangle) { 0 });
index = meta_display_get_monitor_index_for_rect (display,
&(MetaRectangle) { 0 });
g_assert_cmpint (index, ==, -1);
}