wl-drm: sort screen modes and assign zone->output

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-12-15 11:09:56 -05:00
parent 26e2533d94
commit 61b07a16ff
1 changed files with 6 additions and 0 deletions

View File

@ -271,6 +271,7 @@ _drm2_randr_create(void)
const Eina_List *outputs;
Ecore_Drm2_Output *output;
unsigned int type;
E_Zone *zone;
dev = ecore_evas_data_get(e_comp->ee, "device");
if (!dev) return NULL;
@ -355,6 +356,8 @@ _drm2_randr_create(void)
s->info.modes = eina_list_append(s->info.modes, rmode);
}
e_randr2_screen_modes_sort(s);
if (e_randr2_cfg)
cs = e_randr2_config_screen_find(s, e_randr2_cfg);
if (cs)
@ -425,6 +428,9 @@ _drm2_randr_create(void)
}
}
zone = e_zone_for_id_get(s->id);
if ((zone) && (!zone->output)) zone->output = s;
r->screens = eina_list_append(r->screens, s);
}