summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-01-18 20:12:09 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-01-18 20:12:09 +0100
commit11bfbd0d740ab4744f786f6ba3eb3d170a496f35 (patch)
tree0ea353c3404f48c10482779dd6ed12e65f2af244
parente63c83205558ba60fb6743d19c1b4460d52074b5 (diff)
elm_win: return window_id instead of surface_iddevs/bu5hm4n/fix
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.
-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 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)
5613 { 5613 {
5614#if HAVE_ELEMENTARY_WL2 5614#if HAVE_ELEMENTARY_WL2
5615 if (sd->wl.win) 5615 if (sd->wl.win)
5616 return (Ecore_Window)ecore_wl2_window_surface_id_get(sd->wl.win); 5616 return (Ecore_Window)ecore_wl2_window_id_get(sd->wl.win);
5617 if (sd->parent) 5617 if (sd->parent)
5618 { 5618 {
5619 Ecore_Wl2_Window *parent; 5619 Ecore_Wl2_Window *parent;
5620 5620
5621 parent = elm_win_wl_window_get(sd->parent); 5621 parent = elm_win_wl_window_get(sd->parent);
5622 if (parent) 5622 if (parent)
5623 return (Ecore_Window)ecore_wl2_window_surface_id_get(parent); 5623 return (Ecore_Window)ecore_wl2_window_id_get(parent);
5624 return 0; 5624 return 0;
5625 } 5625 }
5626#endif 5626#endif