forked from enlightenment/efl
ecore-evas/wayland: fix parent setting on canvas creation
Summary:
use the correct pointer when applying the passed parent object in order to
successfully set the parent
ref 78f27a3eff
Reviewers: devilhorns
Reviewed By: devilhorns
Subscribers: cedric, #committers
Tags: #efl_display_system
Differential Revision: https://phab.enlightenment.org/D6757
This commit is contained in:
parent
31b6e87495
commit
c54b7a4ab3
|
@ -2440,7 +2440,7 @@ Ecore_Evas *
|
||||||
_ecore_evas_wl_common_new_internal(const char *disp_name, Ecore_Window parent, int x, int y, int w, int h, Eina_Bool frame, const char *engine_name)
|
_ecore_evas_wl_common_new_internal(const char *disp_name, Ecore_Window parent, int x, int y, int w, int h, Eina_Bool frame, const char *engine_name)
|
||||||
{
|
{
|
||||||
Ecore_Wl2_Display *ewd;
|
Ecore_Wl2_Display *ewd;
|
||||||
Ecore_Wl2_Window *p = NULL;
|
Ecore_Wl2_Window *p = (Ecore_Wl2_Window *)parent;
|
||||||
Evas_Engine_Info_Wayland *einfo;
|
Evas_Engine_Info_Wayland *einfo;
|
||||||
Ecore_Evas_Engine_Wl_Data *wdata;
|
Ecore_Evas_Engine_Wl_Data *wdata;
|
||||||
Ecore_Evas_Interface_Wayland *iface;
|
Ecore_Evas_Interface_Wayland *iface;
|
||||||
|
@ -2516,7 +2516,7 @@ _ecore_evas_wl_common_new_internal(const char *disp_name, Ecore_Window parent, i
|
||||||
else
|
else
|
||||||
ee->can_async_render = 1;
|
ee->can_async_render = 1;
|
||||||
|
|
||||||
if (parent) ee->alpha = ecore_wl2_window_alpha_get((Ecore_Wl2_Window *)parent);
|
if (p) ee->alpha = ecore_wl2_window_alpha_get(p);
|
||||||
|
|
||||||
wdata->sync_done = EINA_FALSE;
|
wdata->sync_done = EINA_FALSE;
|
||||||
wdata->parent = p;
|
wdata->parent = p;
|
||||||
|
|
Loading…
Reference in New Issue