tasn pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=6da3771eb89068f3721b7939ccb619e7b1240f91
commit 6da3771eb89068f3721b7939ccb619e7b1240f91 Author: Tom Hacohen <[email protected]> Date: Mon Jul 28 10:41:54 2014 +0100 Tiling: Clean up the tiling entry check code. This makes it a little less redundant. --- src/modules/tiling/e_mod_tiling.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/modules/tiling/e_mod_tiling.c b/src/modules/tiling/e_mod_tiling.c index a8aff43..9be62e0 100644 --- a/src/modules/tiling/e_mod_tiling.c +++ b/src/modules/tiling/e_mod_tiling.c @@ -402,17 +402,16 @@ tiling_entry_no_desk_func(E_Client *ec) static Client_Extra * tiling_entry_func(E_Client *ec) { - Client_Extra *extra = NULL; + Client_Extra *extra; + + if (!is_tilable(ec)) + return NULL; - if (is_tilable(ec)) - extra = tiling_entry_no_desk_func(ec); + extra = tiling_entry_no_desk_func(ec); if (!extra) return NULL; - if (!is_tilable(ec)) - return NULL; - if (!desk_should_tile_check(ec->desk)) return NULL; --
