summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiep Ha <thiepha@gmail.com>2015-07-06 22:46:48 +0300
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2015-07-06 22:48:38 +0300
commit259a98431ce293df56794668998a80efc80035dc (patch)
tree6de8d52d5936a1f75c19ed2551849f13132b8f78
parentf7915a5e6f38075724d1e1a8b6f24e0c2343f709 (diff)
downloadelementary-259a98431ce293df56794668998a80efc80035dc.tar.gz
cnp: change drag win type to ELM_WIN_DND
Summary: Drag win should use ELM_WIN_DND. The drag win in _drag_start function was added when ELM_WIN_DND was not supported. Now we have ELM_WIN_DND, drag win needs to change to ELM_WIN_DND. @fix Reviewers: JackDanielZ, cedric, Hermet Subscribers: seoz Differential Revision: https://phab.enlightenment.org/D2784
-rw-r--r--src/lib/elm_cnp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 886f2a6f2..08c02be6c 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -2175,7 +2175,7 @@ _x11_elm_drag_start(Evas_Object *obj, Elm_Sel_Format format, const char *data,
(void *)(long)xwin);
handler_status = ecore_event_handler_add(ECORE_X_EVENT_XDND_STATUS,
_x11_dnd_status, NULL);
- dragwin = elm_win_add(NULL, "Elm-Drag", ELM_WIN_UTILITY);
+ dragwin = elm_win_add(NULL, "Elm-Drag", ELM_WIN_DND);
elm_win_alpha_set(dragwin, EINA_TRUE);
elm_win_override_set(dragwin, EINA_TRUE);
xdragwin = _x11_elm_widget_xwin_get(dragwin);
@@ -4244,7 +4244,7 @@ _drag_anim_start(void *data)
st->icons = _anim_icons_make(st->user_info.icons);
if (st->user_info.createicon)
{
- Evas_Object *temp_win = elm_win_add(NULL, "Temp", ELM_WIN_UTILITY);
+ Evas_Object *temp_win = elm_win_add(NULL, "Temp", ELM_WIN_DND);
Evas_Object *final_icon = st->user_info.createicon(st->user_info.createdata, temp_win, NULL, NULL);
evas_object_geometry_get(final_icon, NULL, NULL, &st->final_icon_w, &st->final_icon_h);
evas_object_del(final_icon);