add some safety checks for borders without execs

This commit is contained in:
Mike Blumenkrantz 2013-06-19 07:09:43 +01:00
parent fa8e976540
commit 6d9c4c0b4c
1 changed files with 2 additions and 0 deletions

View File

@ -139,6 +139,7 @@ Config *ibar_config = NULL;
static inline const char *
_desktop_name_get(const Efreet_Desktop *desktop)
{
if (!desktop) return NULL;
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_Bool skip;
if ((!ev->border->exe_inst) || (!ev->border->exe_inst->desktop)) return ECORE_CALLBACK_RENEW;
skip = ev->border->client.netwm.state.skip_taskbar;
EINA_LIST_FOREACH(ibars, l, b)
{