wl-drm: get screen geometry after e_comp_wl_init is called

This change is needed because if we call
ecore_evas_screen_geometry_get before calling e_comp_wl_init, then
when the drm2 randr settings are applied, the screen geometry could
change (saved resolutions are restored). This commit ensures that drm2
has the same resolution settings as the randr ones, and
screen_geometry_get will return the proper values now.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-12-15 11:04:20 -05:00
parent 4f26b4b1dd
commit 26e2533d94
1 changed files with 3 additions and 3 deletions

View File

@ -799,12 +799,12 @@ e_modapi_init(E_Module *m)
ecore_evas_data_set(e_comp->ee, "comp", e_comp);
/* get the current screen geometry */
ecore_evas_screen_geometry_get(e_comp->ee, NULL, NULL, &w, &h);
e_comp->screen = &drmiface;
if (!e_comp_wl_init()) return NULL;
/* get the current screen geometry */
ecore_evas_screen_geometry_get(e_comp->ee, NULL, NULL, &w, &h);
if (!e_comp_canvas_init(w, h)) return NULL;
ecore_evas_pointer_xy_get(e_comp->ee, &e_comp_wl->ptr.x,