e_shelf - check visiblity with zone and desk FIRST not later

es->cfg->desk_show_mode if false (default) implies a shelf is always
visible - true, as it's sticky (visible on all desktops). but this
didn't check zone. check zone first THEN this.
This commit is contained in:
Carsten Haitzler 2015-04-28 07:48:16 +09:00
parent 5db35cd85a
commit 871fed7493
1 changed files with 1 additions and 1 deletions

View File

@ -837,12 +837,12 @@ e_shelf_desk_visible(const E_Shelf *es, const E_Desk *desk)
}
return EINA_FALSE;
}
if (!es->cfg->desk_show_mode) return EINA_TRUE;
cf_es = es->cfg;
if (!cf_es) return EINA_FALSE;
zone = desk->zone;
if (cf_es->zone != (int)zone->num) return EINA_FALSE;
if (!es->cfg->desk_show_mode) return EINA_TRUE;
EINA_LIST_FOREACH(es->cfg->desk_list, ll, sd)
{