devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=1029f53f99d748c3d515a3b74a74c529b289c80e

commit 1029f53f99d748c3d515a3b74a74c529b289c80e
Author: Chris Michael <cpmich...@osg.samsung.com>
Date:   Tue Jan 19 10:43:28 2016 -0500

    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 <cpmich...@osg.samsung.com>
---
 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 050e82b..5f0234c 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

-- 


Reply via email to