summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-08-06 15:18:14 -0400
committerChris Michael <cp.michael@samsung.com>2018-08-06 15:18:14 -0400
commitc54b7a4ab344eea057209dbe580c5918391ee4b6 (patch)
tree80d9baf4eebc7986def0accb80c20f4b6411f47e
parent31b6e87495d21b25e6f9f19c0560856d0f4ea7c3 (diff)
downloadefl-c54b7a4ab344eea057209dbe580c5918391ee4b6.tar.gz
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 78f27a3efff24ba3b935cc9e2620718e51af9304 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #committers Tags: #efl_display_system Differential Revision: https://phab.enlightenment.org/D6757
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index 16decc5632..8fdd6d9846 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -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;