summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-04-16 11:07:17 -0400
committerChris Michael <cp.michael@samsung.com>2015-04-16 11:09:25 -0400
commit257452f46d344b64d611aa555a8aacdd509a492e (patch)
treec5ad50f4dfa4de8e5a4a2b77d31384efdcb16ce5
parent6258b11a5de6e8bdf6131f0d49a69c015ba1b1b4 (diff)
downloadelementary-257452f46d344b64d611aa555a8aacdd509a492e.tar.gz
elementary: Fix elm_win_window_id_get for wayland
Summary: This fixed the elm_win_window_id_get function when running in wayland to return the ecore_wl_window_id rather than the surface id. This change is necessary so that anyone calling this function can use the return value in ecore_wayland function calls. NB: Thanks to Hermet for pointing this out ! :) @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/elm_win.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index 8674105ea..9296df842 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -5098,13 +5098,13 @@ _elm_win_window_id_get(Eo *obj EINA_UNUSED, Elm_Win_Data *sd)
(!strcmp(engine_name, ELM_WAYLAND_EGL)))))
{
#if HAVE_ELEMENTARY_WAYLAND
- if (sd->wl.win) return (Ecore_Window)ecore_wl_window_surface_id_get(sd->wl.win);
+ if (sd->wl.win) return (Ecore_Window)ecore_wl_window_id_get(sd->wl.win);
if (sd->parent)
{
Ecore_Wl_Window *parent;
parent = elm_win_wl_window_get(sd->parent);
- if (parent) return (Ecore_Window)ecore_wl_window_surface_id_get(parent);
+ if (parent) return (Ecore_Window)ecore_wl_window_id_get(parent);
return 0;
}
#endif