forked from enlightenment/enlightenment
add some safety checks for borders without execs
This commit is contained in:
parent
fa8e976540
commit
6d9c4c0b4c
|
@ -139,6 +139,7 @@ Config *ibar_config = NULL;
|
||||||
static inline const char *
|
static inline const char *
|
||||||
_desktop_name_get(const Efreet_Desktop *desktop)
|
_desktop_name_get(const Efreet_Desktop *desktop)
|
||||||
{
|
{
|
||||||
|
if (!desktop) return NULL;
|
||||||
return desktop->orig_path ?: desktop->name;
|
return desktop->orig_path ?: desktop->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2138,6 +2139,7 @@ _ibar_cb_bd_prop(void *d EINA_UNUSED, int t EINA_UNUSED, E_Event_Border_Property
|
||||||
Eina_List *l;
|
Eina_List *l;
|
||||||
Eina_Bool skip;
|
Eina_Bool skip;
|
||||||
|
|
||||||
|
if ((!ev->border->exe_inst) || (!ev->border->exe_inst->desktop)) return ECORE_CALLBACK_RENEW;
|
||||||
skip = ev->border->client.netwm.state.skip_taskbar;
|
skip = ev->border->client.netwm.state.skip_taskbar;
|
||||||
EINA_LIST_FOREACH(ibars, l, b)
|
EINA_LIST_FOREACH(ibars, l, b)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue