Elementary: Fix selection_has_owner function. Check for valid wl
authorChristopher Michael <cpmichael1@comcast.net>
Wed, 29 Aug 2012 07:15:32 +0000 (07:15 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Wed, 29 Aug 2012 07:15:32 +0000 (07:15 +0000)
window. Thanks raster ;)

SVN revision: 75813

src/lib/elm_cnp.c

index 54a194b..a5b1b44 100644 (file)
@@ -2059,7 +2059,8 @@ elm_selection_selection_has_owner(Evas_Object *obj)
      return _x11_elm_selection_selection_has_owner(obj);
 #endif
 #ifdef HAVE_ELEMENTARY_WAYLAND
-   return ecore_wl_dnd_selection_has_owner(ecore_wl_dnd_get());
+   if (elm_win_wl_window_get(obj))
+     return ecore_wl_dnd_selection_has_owner(ecore_wl_dnd_get());
 #endif
    return _local_elm_selection_selection_has_owner(obj);
 }