elementary: Fix elm_win_window_id_get function

When using this function with wayland windows, we should be returning
the matching Ecore_Wl2_Window id, not the surface_id

ref T3058

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
Chris Michael 2016-01-19 10:43:28 -05:00
parent dae6d87af4
commit dc22117232
1 changed files with 2 additions and 2 deletions

View File

@ -5613,14 +5613,14 @@ _elm_win_window_id_get(Eo *obj EINA_UNUSED, Elm_Win_Data *sd)
{
#if HAVE_ELEMENTARY_WL2
if (sd->wl.win)
return (Ecore_Window)ecore_wl2_window_surface_id_get(sd->wl.win);
return (Ecore_Window)ecore_wl2_window_id_get(sd->wl.win);
if (sd->parent)
{
Ecore_Wl2_Window *parent;
parent = elm_win_wl_window_get(sd->parent);
if (parent)
return (Ecore_Window)ecore_wl2_window_surface_id_get(parent);
return (Ecore_Window)ecore_wl2_window_id_get(parent);
return 0;
}
#endif