summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-01-19 10:43:28 -0500
committerChris Michael <cpmichael@osg.samsung.com>2016-01-19 10:48:19 -0500
commit1029f53f99d748c3d515a3b74a74c529b289c80e (patch)
tree5e936d3d80bf940d63761f05430ba8c631e91151 /src
parent29ea7e3e649a591e121b066effbe843995946924 (diff)
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>
Diffstat (limited to 'src')
-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