forked from enlightenment/efl
* ecore_evas: Fix ecore_evas_gl_x11_new usage.
SVN revision: 41167
This commit is contained in:
parent
9110d8d574
commit
cfd40e9cc4
|
@ -2571,7 +2571,6 @@ ecore_evas_gl_x11_new(const char *disp_name, Ecore_X_Window parent,
|
||||||
# ifdef HAVE_ECORE_X_XCB
|
# ifdef HAVE_ECORE_X_XCB
|
||||||
Ecore_Evas *ee = NULL;
|
Ecore_Evas *ee = NULL;
|
||||||
# else
|
# else
|
||||||
Evas_Engine_Info_GL_X11 *einfo;
|
|
||||||
Ecore_Evas *ee;
|
Ecore_Evas *ee;
|
||||||
int rmethod;
|
int rmethod;
|
||||||
|
|
||||||
|
@ -2613,12 +2612,9 @@ ecore_evas_gl_x11_new(const char *disp_name, Ecore_X_Window parent,
|
||||||
|
|
||||||
if (parent == 0) parent = DefaultRootWindow(ecore_x_display_get());
|
if (parent == 0) parent = DefaultRootWindow(ecore_x_display_get());
|
||||||
ee->engine.x.win_root = parent;
|
ee->engine.x.win_root = parent;
|
||||||
einfo = (Evas_Engine_Info_GL_X11 *)evas_engine_info_get(ee->evas);
|
|
||||||
if (einfo)
|
ee->prop.window = _ecore_evas_x_gl_window_new(ee, ee->engine.x.win_root, x, y, w, h, 0);
|
||||||
{
|
|
||||||
ee->prop.window = _ecore_evas_x_gl_window_new(ee, ee->engine.x.win_root, x, y, w, h, 0);
|
|
||||||
evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo);
|
|
||||||
}
|
|
||||||
if (getenv("DESKTOP_STARTUP_ID"))
|
if (getenv("DESKTOP_STARTUP_ID"))
|
||||||
{
|
{
|
||||||
ecore_x_netwm_startup_id_set(ee->prop.window,
|
ecore_x_netwm_startup_id_set(ee->prop.window,
|
||||||
|
|
Loading…
Reference in New Issue