discomfitor pushed a commit to branch enlightenment-0.22. http://git.enlightenment.org/core/enlightenment.git/commit/?id=b5db66ea5679f0373b8097128152693e2f540c3b
commit b5db66ea5679f0373b8097128152693e2f540c3b Author: Chris Michael <[email protected]> Date: Fri Dec 15 11:04:20 2017 -0500 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 <[email protected]> --- src/modules/wl_drm/e_mod_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/wl_drm/e_mod_main.c b/src/modules/wl_drm/e_mod_main.c index e4355268e..4adcd0850 100644 --- a/src/modules/wl_drm/e_mod_main.c +++ b/src/modules/wl_drm/e_mod_main.c @@ -818,12 +818,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, --
