forked from enlightenment/enlightenment
Tiling: Clean up the tiling entry check code.
This makes it a little less redundant.
This commit is contained in:
parent
fb3f852601
commit
6da3771eb8
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue