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:
Mike Blumenkrantz 2018-08-06 15:18:14 -04:00 committed by Chris Michael
parent 31b6e87495
commit c54b7a4ab3
1 changed files with 2 additions and 2 deletions

View File

@ -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_Wl2_Display *ewd;
Ecore_Wl2_Window *p = NULL;
Ecore_Wl2_Window *p = (Ecore_Wl2_Window *)parent;
Evas_Engine_Info_Wayland *einfo;
Ecore_Evas_Engine_Wl_Data *wdata;
Ecore_Evas_Interface_Wayland *iface;
@ -2516,7 +2516,7 @@ _ecore_evas_wl_common_new_internal(const char *disp_name, Ecore_Window parent, i
else
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->parent = p;