fix issue where wayland modules were always creating a new compositor
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
f2e7bd7204
commit
a8b4717fdf
|
@ -67,8 +67,11 @@ e_modapi_init(E_Module *m)
|
||||||
/* return NULL; */
|
/* return NULL; */
|
||||||
/* } */
|
/* } */
|
||||||
|
|
||||||
comp = e_comp_new();
|
if (!(comp = e_comp))
|
||||||
comp->comp_type = E_PIXMAP_TYPE_WL;
|
{
|
||||||
|
comp = e_comp_new();
|
||||||
|
comp->comp_type = E_PIXMAP_TYPE_WL;
|
||||||
|
}
|
||||||
|
|
||||||
if ((e_comp_gl_get()) &&
|
if ((e_comp_gl_get()) &&
|
||||||
(e_comp_config_get()->engine == E_COMP_ENGINE_GL))
|
(e_comp_config_get()->engine == E_COMP_ENGINE_GL))
|
||||||
|
|
|
@ -23,9 +23,15 @@ e_modapi_init(E_Module *m)
|
||||||
|
|
||||||
ecore_fb_size_get(&w, &h);
|
ecore_fb_size_get(&w, &h);
|
||||||
ee = ecore_evas_fb_new(NULL, 0, w, h);
|
ee = ecore_evas_fb_new(NULL, 0, w, h);
|
||||||
comp = e_comp_new();
|
|
||||||
comp->comp_type = E_PIXMAP_TYPE_WL;
|
if (!(comp = e_comp))
|
||||||
|
{
|
||||||
|
comp = e_comp_new();
|
||||||
|
comp->comp_type = E_PIXMAP_TYPE_WL;
|
||||||
|
}
|
||||||
|
|
||||||
comp->ee = ee;
|
comp->ee = ee;
|
||||||
|
|
||||||
if (!e_xinerama_fake_screens_exist())
|
if (!e_xinerama_fake_screens_exist())
|
||||||
{
|
{
|
||||||
screen = E_NEW(E_Screen, 1);
|
screen = E_NEW(E_Screen, 1);
|
||||||
|
|
|
@ -77,9 +77,14 @@ e_modapi_init(E_Module *m)
|
||||||
ee = ecore_evas_software_x11_new(NULL, 0, 0, 0, SCREEN_W, SCREEN_H);
|
ee = ecore_evas_software_x11_new(NULL, 0, 0, 0, SCREEN_W, SCREEN_H);
|
||||||
ecore_evas_callback_delete_request_set(ee, _cb_delete_request);
|
ecore_evas_callback_delete_request_set(ee, _cb_delete_request);
|
||||||
|
|
||||||
comp = e_comp_new();
|
if (!(comp = e_comp))
|
||||||
comp->comp_type = E_PIXMAP_TYPE_WL;
|
{
|
||||||
|
comp = e_comp_new();
|
||||||
|
comp->comp_type = E_PIXMAP_TYPE_WL;
|
||||||
|
}
|
||||||
|
|
||||||
comp->ee = ee;
|
comp->ee = ee;
|
||||||
|
|
||||||
if (!e_xinerama_fake_screens_exist())
|
if (!e_xinerama_fake_screens_exist())
|
||||||
{
|
{
|
||||||
screen = E_NEW(E_Screen, 1);
|
screen = E_NEW(E_Screen, 1);
|
||||||
|
|
Loading…
Reference in New Issue