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 *
|
static Client_Extra *
|
||||||
tiling_entry_func(E_Client *ec)
|
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)
|
if (!extra)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!is_tilable(ec))
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
if (!desk_should_tile_check(ec->desk))
|
if (!desk_should_tile_check(ec->desk))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue