Elementary: Fix selection_has_owner function. Check for valid wl

window. Thanks raster ;)



SVN revision: 75813
This commit is contained in:
Christopher Michael 2012-08-29 07:15:32 +00:00
parent 84bbbea8db
commit f1d483ca36
1 changed files with 2 additions and 1 deletions

View 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);
}