Tiling: Clean up the tiling entry check code.

This makes it a little less redundant.
This commit is contained in:
Tom Hacohen 2014-07-28 10:41:54 +01:00
parent fb3f852601
commit 6da3771eb8
1 changed files with 6 additions and 7 deletions

View File

@ -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;
if (is_tilable(ec))
extra = tiling_entry_no_desk_func(ec);
if (!extra)
return NULL;
Client_Extra *extra;
if (!is_tilable(ec))
return NULL;
extra = tiling_entry_no_desk_func(ec);
if (!extra)
return NULL;
if (!desk_should_tile_check(ec->desk))
return NULL;