discomfitor pushed a commit to branch master.
commit 6d9c4c0b4c501ec0b25f94554ce5a76d225d2e6a
Author: Mike Blumenkrantz <[email protected]>
Date: Wed Jun 19 07:09:43 2013 +0100
add some safety checks for borders without execs
---
src/modules/ibar/e_mod_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/modules/ibar/e_mod_main.c b/src/modules/ibar/e_mod_main.c
index 0ff9b8d..287d4d6 100644
--- a/src/modules/ibar/e_mod_main.c
+++ b/src/modules/ibar/e_mod_main.c
@@ -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)
{
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev