Remove a segfault when a border has been closed before the drop actually happened (maybe display a notification to user?)

SVN revision: 36453
This commit is contained in:
Chidambar Zinnoury 2008-10-05 17:42:50 +00:00
parent 2e44f4f6fc
commit 3cd8bd2a93
1 changed files with 2 additions and 0 deletions

View File

@ -2102,6 +2102,7 @@ _pager_drop_cb_drop(void *data, const char *type, void *event_info)
else if (!strcmp(type, "enlightenment/border"))
{
bd = ev->data;
if (e_object_is_del(E_OBJECT(bd))) goto done;
e_layout_coord_virtual_to_canvas(pd->o_layout, bd->x, bd->y, &wx, &wy);
e_layout_coord_virtual_to_canvas(pd->o_layout, bd->x + bd->w, bd->y + bd->h, &wx2, &wy2);
dx = (wx - wx2) / 2;
@ -2131,6 +2132,7 @@ _pager_drop_cb_drop(void *data, const char *type, void *event_info)
}
}
done:
for (l = p->desks; l && p->active_drop_pd; l = l->next)
{
pd = l->data;