forked from enlightenment/efl
Elm dnd: abort drop_target_add if this is not an X window.
This fixes the issue with the shot module, and possibly when running on other non-X engines when elementary is built with X support. SVN revision: 61287
This commit is contained in:
parent
cdf32da42c
commit
aa52a73fcd
|
@ -1348,8 +1348,11 @@ elm_drop_target_add(Evas_Object *obj, Elm_Sel_Type format, Elm_Drop_Cb dropcb, v
|
|||
Ecore_X_Window xwin;
|
||||
Eina_List *item;
|
||||
int first;
|
||||
Evas_Object *top;
|
||||
|
||||
if (!obj) return EINA_FALSE;
|
||||
top = elm_widget_top_get(obj);
|
||||
if (!top || !elm_win_xwindow_get(top)) return EINA_FALSE;
|
||||
if (!_elm_cnp_init_count) _elm_cnp_init();
|
||||
|
||||
/* Is this the first? */
|
||||
|
|
Loading…
Reference in New Issue