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:
parent
2e44f4f6fc
commit
3cd8bd2a93
|
@ -2102,6 +2102,7 @@ _pager_drop_cb_drop(void *data, const char *type, void *event_info)
|
||||||
else if (!strcmp(type, "enlightenment/border"))
|
else if (!strcmp(type, "enlightenment/border"))
|
||||||
{
|
{
|
||||||
bd = ev->data;
|
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->y, &wx, &wy);
|
||||||
e_layout_coord_virtual_to_canvas(pd->o_layout, bd->x + bd->w, bd->y + bd->h, &wx2, &wy2);
|
e_layout_coord_virtual_to_canvas(pd->o_layout, bd->x + bd->w, bd->y + bd->h, &wx2, &wy2);
|
||||||
dx = (wx - wx2) / 2;
|
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)
|
for (l = p->desks; l && p->active_drop_pd; l = l->next)
|
||||||
{
|
{
|
||||||
pd = l->data;
|
pd = l->data;
|
||||||
|
|
Loading…
Reference in New Issue