add refcounr/is_del check before generating event
SVN revision: 24826
This commit is contained in:
parent
065b510919
commit
654258879e
|
@ -1350,8 +1350,12 @@ e_border_focus_set(E_Border *bd, int focus, int set)
|
|||
if ((bd->focused) && (focused != bd))
|
||||
{
|
||||
if (focused)
|
||||
{
|
||||
if ((!e_object_is_del(E_OBJECT(focused))) &&
|
||||
(e_object_ref_get(E_OBJECT(focused)) > 0))
|
||||
{
|
||||
E_Event_Border_Focus_Out *ev;
|
||||
|
||||
// printf("unfocus previous\n");
|
||||
edje_object_signal_emit(focused->bg_object, "passive", "");
|
||||
if (focused->icon_object)
|
||||
|
@ -1375,6 +1379,7 @@ e_border_focus_set(E_Border *bd, int focus, int set)
|
|||
focused->raise_timer = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
e_hints_active_window_set(bd->zone->container->manager, bd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue