dnd - deal with efl behavior breaks and use a button not evas rect

so elm broke behavior where it would allow dnd targets to be regular
evas objects not just elm. so it needs ot be elm so use an elm button.

@fix elm break
This commit is contained in:
Carsten Haitzler 2019-01-12 14:38:18 +00:00
parent a76a80da0b
commit 7c35c02b5b
1 changed files with 2 additions and 1 deletions

View File

@ -601,7 +601,8 @@ win_add(void)
inf->lay = o;
controls_init(win, o);
o = evas_object_rectangle_add(evas_object_evas_get(win));
o = elm_button_add(win);
elm_object_focus_move_policy_set(o, ELM_FOCUS_MOVE_POLICY_CLICK);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_color_set(o, 0, 0, 0, 0);
evas_object_repeat_events_set(o, EINA_TRUE);