Check focused resource is same with DnD icon resource on start_drag request callback.
There was a bug that DnD icon window sometimes didn't appear.
It caused by focus set to the DnD icon window before receive start_drag request by timing issue.
Then the source window lose their focus, finally start_drag request fail.
For fix this issue, check the icon_resource is focused and continue the callback.
Change-Id: Ifb9c64df0123102f7cb925ce19c9902111318654
DBG("Data Device Drag Start");
- if ((e_comp_wl->kbd.focus) && (e_comp_wl->kbd.focus != origin_resource)) return;
+ if ((e_comp_wl->kbd.focus) &&
+ (e_comp_wl->kbd.focus != origin_resource) &&
+ (e_comp_wl->kbd.focus != icon_resource))
+ return;
if (!(source = wl_resource_get_user_data(source_resource))) return;
e_comp_wl->drag_source = source;