projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e44f4f
)
Remove a segfault when a border has been closed before the drop actually happened...
author
Chidambar Zinnoury
<illogict@online.fr>
Sun, 5 Oct 2008 17:42:50 +0000
(17:42 +0000)
committer
Chidambar Zinnoury
<illogict@online.fr>
Sun, 5 Oct 2008 17:42:50 +0000
(17:42 +0000)
SVN revision: 36453
src/modules/pager/e_mod_main.c
patch
|
blob
|
history
diff --git
a/src/modules/pager/e_mod_main.c
b/src/modules/pager/e_mod_main.c
index
2944f8e
..
f5bfbc2
100644
(file)
--- a/
src/modules/pager/e_mod_main.c
+++ b/
src/modules/pager/e_mod_main.c
@@
-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;