Remove a segfault when a border has been closed before the drop actually happened...
authorChidambar Zinnoury <illogict@online.fr>
Sun, 5 Oct 2008 17:42:50 +0000 (17:42 +0000)
committerChidambar 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

index 2944f8e..f5bfbc2 100644 (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;