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:

committed by
Jonas Ådahl

parent
68f261e8e2
commit
e1c67a1824
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user