From 871fed7493416e43d2120b2fa369f44c0682022b Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Tue, 28 Apr 2015 07:48:16 +0900 Subject: [PATCH] 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. --- src/bin/e_shelf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_shelf.c b/src/bin/e_shelf.c index da0d7b513..c29e27eb8 100644 --- a/src/bin/e_shelf.c +++ b/src/bin/e_shelf.c @@ -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) {