printf's - me dbeugging why these windows hang around. they get del called

but dont actually get deleted... too many ref's? dunno- hasn't happened again
since i added the latest dbeugging in..


SVN revision: 14847
This commit is contained in:
Carsten Haitzler 2005-05-19 00:12:30 +00:00
parent e67805572a
commit 44c9b74f7f
2 changed files with 13 additions and 2 deletions

View File

@ -431,7 +431,9 @@ e_border_hide(E_Border *bd, int manage)
E_OBJECT_CHECK(bd); E_OBJECT_CHECK(bd);
E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE); E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
if (!bd->visible) return; if (!bd->visible) return;
printf("hide1\n");
if (bd->moving) return; if (bd->moving) return;
printf("hide2\nn");
ecore_x_window_hide(bd->client.win); ecore_x_window_hide(bd->client.win);
e_container_shape_hide(bd->shape); e_container_shape_hide(bd->shape);
@ -452,6 +454,7 @@ e_border_hide(E_Border *bd, int manage)
ev = calloc(1, sizeof(E_Event_Border_Hide)); ev = calloc(1, sizeof(E_Event_Border_Hide));
ev->border = bd; ev->border = bd;
e_object_ref(E_OBJECT(bd)); e_object_ref(E_OBJECT(bd));
printf("ref bd %p to %i\n", bd, e_object_ref_get(E_OBJECT(bd)));
ecore_event_add(E_EVENT_BORDER_HIDE, ev, _e_border_event_border_hide_free, NULL); ecore_event_add(E_EVENT_BORDER_HIDE, ev, _e_border_event_border_hide_free, NULL);
} }
} }
@ -1390,6 +1393,7 @@ e_border_button_bindings_grab_all(void)
static void static void
_e_border_free(E_Border *bd) _e_border_free(E_Border *bd)
{ {
printf("BD FREE %p\n", bd);
if (resize == bd) if (resize == bd)
_e_border_resize_end(bd); _e_border_resize_end(bd);
if (move == bd) if (move == bd)
@ -1450,6 +1454,7 @@ _e_border_del(E_Border *bd)
{ {
E_Event_Border_Remove *ev; E_Event_Border_Remove *ev;
printf("BD DEL %p\n", bd);
ecore_x_window_reparent(bd->client.win, ecore_x_window_reparent(bd->client.win,
bd->zone->container->manager->root, bd->zone->container->manager->root,
bd->x + bd->client_inset.l, bd->x + bd->client_inset.l,
@ -1501,20 +1506,26 @@ _e_border_cb_window_hide(void *data, int ev_type, void *ev)
// printf("in hide cb\n"); // printf("in hide cb\n");
bd = data; bd = data;
e = ev; e = ev;
printf("hide..\n");
bd = e_border_find_by_client_window(e->win); bd = e_border_find_by_client_window(e->win);
if (!bd) return 1; if (!bd) return 1;
printf("found %p\n");
if (bd->ignore_first_unmap > 0) if (bd->ignore_first_unmap > 0)
{ {
printf("IGNORE UNMAP\n");
bd->ignore_first_unmap--; bd->ignore_first_unmap--;
return 1; return 1;
} }
/* Don't delete hidden or iconified windows */ /* Don't delete hidden or iconified windows */
if ((bd->iconic) || (!bd->visible)) if ((bd->iconic) || (!bd->visible))
{ {
printf("iconic %i || !visible %i\n",
bd->iconic, bd->visible);
e_border_hide(bd, 1); e_border_hide(bd, 1);
} }
else else
{ {
printf("hide + del\n");
e_border_hide(bd, 0); e_border_hide(bd, 0);
e_object_del(E_OBJECT(bd)); e_object_del(E_OBJECT(bd));
} }

View File

@ -283,10 +283,10 @@ E_IPC_Opt_Handler handlers[] =
OREQ("-lang-list", "List all available languages", E_IPC_OP_LANG_LIST, 1), OREQ("-lang-list", "List all available languages", E_IPC_OP_LANG_LIST, 1),
OSTR("-lang-set", "Set the current language", E_IPC_OP_LANG_SET, 0), OSTR("-lang-set", "Set the current language", E_IPC_OP_LANG_SET, 0),
OREQ("-binding-mouse-list", "List all mouse bindings", E_IPC_OP_BINDING_MOUSE_LIST, 1), OREQ("-binding-mouse-list", "List all mouse bindings", E_IPC_OP_BINDING_MOUSE_LIST, 1),
OFNC("-binding-mouse-add", "Add or replace an existing mouse binding. OPT1 = Context, OPT2 = button, OPT3 = modifiers, OPT4 = any modifier ok, OPT5 = action, OPT6 = action parameters", 6, _e_opt_binding_mouse_add, 0), OFNC("-binding-mouse-add", "Add an existing mouse binding. OPT1 = Context, OPT2 = button, OPT3 = modifiers, OPT4 = any modifier ok, OPT5 = action, OPT6 = action parameters", 6, _e_opt_binding_mouse_add, 0),
OFNC("-binding-mouse-del", "Delete an existing mouse binding. OPT1 = Context, OPT2 = button, OPT3 = modifiers, OPT4 = any modifier ok, OPT5 = action, OPT6 = action parameters", 6, _e_opt_binding_mouse_del, 0), OFNC("-binding-mouse-del", "Delete an existing mouse binding. OPT1 = Context, OPT2 = button, OPT3 = modifiers, OPT4 = any modifier ok, OPT5 = action, OPT6 = action parameters", 6, _e_opt_binding_mouse_del, 0),
OREQ("-binding-key-list", "List all key bindings", E_IPC_OP_BINDING_KEY_LIST, 1), OREQ("-binding-key-list", "List all key bindings", E_IPC_OP_BINDING_KEY_LIST, 1),
OFNC("-binding-key-add", "Add or replace an existing key binding. OPT1 = Context, OPT2 = key, OPT3 = modifiers, OPT4 = any modifier ok, OPT5 = action, OPT6 = action parameters", 6, _e_opt_binding_key_add, 0), OFNC("-binding-key-add", "Add an existing key binding. OPT1 = Context, OPT2 = key, OPT3 = modifiers, OPT4 = any modifier ok, OPT5 = action, OPT6 = action parameters", 6, _e_opt_binding_key_add, 0),
OFNC("-binding-key-del", "Delete an existing key binding. OPT1 = Context, OPT2 = key, OPT3 = modifiers, OPT4 = any modifier ok, OPT5 = action, OPT6 = action parameters", 6, _e_opt_binding_key_del, 0), OFNC("-binding-key-del", "Delete an existing key binding. OPT1 = Context, OPT2 = key, OPT3 = modifiers, OPT4 = any modifier ok, OPT5 = action, OPT6 = action parameters", 6, _e_opt_binding_key_del, 0),
ODBL("-menus-scroll-speed-set", "Set the scroll speed of menus (pixels/sec)", E_IPC_OP_MENUS_SCROLL_SPEED_SET, 0), ODBL("-menus-scroll-speed-set", "Set the scroll speed of menus (pixels/sec)", E_IPC_OP_MENUS_SCROLL_SPEED_SET, 0),
OREQ("-menus-scroll-speed-get", "Get the scroll speed of menus (pixels/sec)", E_IPC_OP_MENUS_SCROLL_SPEED_GET, 1), OREQ("-menus-scroll-speed-get", "Get the scroll speed of menus (pixels/sec)", E_IPC_OP_MENUS_SCROLL_SPEED_GET, 1),