forked from enlightenment/enlightenment
wl-drm: Hook into ecore_evas_resize callback to update comp canvas
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
3b3a47f5ce
commit
ca6c46d0c8
|
@ -79,6 +79,12 @@ end:
|
||||||
return ECORE_CALLBACK_PASS_ON;
|
return ECORE_CALLBACK_PASS_ON;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
_e_mod_drm_cb_ee_resize(Ecore_Evas *ee EINA_UNUSED)
|
||||||
|
{
|
||||||
|
e_comp_canvas_update();
|
||||||
|
}
|
||||||
|
|
||||||
EAPI void *
|
EAPI void *
|
||||||
e_modapi_init(E_Module *m)
|
e_modapi_init(E_Module *m)
|
||||||
{
|
{
|
||||||
|
@ -117,13 +123,15 @@ e_modapi_init(E_Module *m)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ecore_evas_data_set(e_comp->ee, "comp", e_comp);
|
||||||
|
|
||||||
/* get the current screen geometry */
|
/* get the current screen geometry */
|
||||||
ecore_evas_screen_geometry_get(e_comp->ee, NULL, NULL, &w, &h);
|
ecore_evas_screen_geometry_get(e_comp->ee, NULL, NULL, &w, &h);
|
||||||
|
|
||||||
/* resize the canvas */
|
/* resize the canvas */
|
||||||
ecore_evas_resize(e_comp->ee, w, h);
|
ecore_evas_resize(e_comp->ee, w, h);
|
||||||
|
|
||||||
/* TODO: hook ecore_evas_callback_resize_set */
|
ecore_evas_callback_resize_set(e_comp->ee, _e_mod_drm_cb_ee_resize);
|
||||||
|
|
||||||
if (!e_xinerama_fake_screens_exist())
|
if (!e_xinerama_fake_screens_exist())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue