From 11bfbd0d740ab4744f786f6ba3eb3d170a496f35 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Mon, 18 Jan 2016 20:12:09 +0100 Subject: elm_win: return window_id instead of surface_id with a x11 window we are returning a id which corresponse to the event_window id of a key down event. This should also be the case of a wl window. --- src/lib/elm_win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c index 050e82b9e..5f0234c06 100644 --- a/src/lib/elm_win.c +++ b/src/lib/elm_win.c @@ -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 -- cgit v1.2.1