client: client_isvisible_exclude_banned() isn't needed anymore.
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
21e6db0049
commit
62b2273b53
20
client.h
20
client.h
|
@ -41,7 +41,7 @@ DO_RCNT(client_t, client, client_delete)
|
||||||
#define client_need_arrange(c) \
|
#define client_need_arrange(c) \
|
||||||
do { \
|
do { \
|
||||||
if(!globalconf.screens[(c)->screen].need_arrange \
|
if(!globalconf.screens[(c)->screen].need_arrange \
|
||||||
&& client_isvisible_exclude_banned(c, (c)->screen)) \
|
&& client_isvisible(c, (c)->screen)) \
|
||||||
globalconf.screens[(c)->screen].need_arrange = true; \
|
globalconf.screens[(c)->screen].need_arrange = true; \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
|
@ -131,20 +131,8 @@ client_isfixed(client_t *c)
|
||||||
&& c->size_hints.max_height);
|
&& c->size_hints.max_height);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns true if a client is tagged
|
/** Returns true if a client is tagged with one of the tags of the
|
||||||
* with one of the tags of the specified screen and is not hidden.
|
* specified screen and is not hidden. Note that "banned" clients are included.
|
||||||
* \param c The client to check.
|
|
||||||
* \param screen Virtual screen number.
|
|
||||||
* \return true if the client is visible, false otherwise.
|
|
||||||
*/
|
|
||||||
static inline bool
|
|
||||||
client_isvisible_exclude_banned(client_t *c, int screen)
|
|
||||||
{
|
|
||||||
return (!c->ishidden && !c->isminimized && client_maybevisible(c, screen));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Returns true if a client is tagged
|
|
||||||
* with one of the tags of the specified screen and is not hidden or banned.
|
|
||||||
* \param c The client to check.
|
* \param c The client to check.
|
||||||
* \param screen Virtual screen number.
|
* \param screen Virtual screen number.
|
||||||
* \return true if the client is visible, false otherwise.
|
* \return true if the client is visible, false otherwise.
|
||||||
|
@ -152,7 +140,7 @@ client_isvisible_exclude_banned(client_t *c, int screen)
|
||||||
static inline bool
|
static inline bool
|
||||||
client_isvisible(client_t *c, int screen)
|
client_isvisible(client_t *c, int screen)
|
||||||
{
|
{
|
||||||
return (client_isvisible_exclude_banned(c, screen) && !c->isbanned);
|
return (!c->ishidden && !c->isminimized && client_maybevisible(c, screen));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Check if a client has strut information.
|
/** Check if a client has strut information.
|
||||||
|
|
2
layout.c
2
layout.c
|
@ -39,7 +39,7 @@ arrange(int screen)
|
||||||
|
|
||||||
for(c = globalconf.clients; c; c = c->next)
|
for(c = globalconf.clients; c; c = c->next)
|
||||||
{
|
{
|
||||||
if(client_isvisible_exclude_banned(c, screen))
|
if(client_isvisible(c, screen))
|
||||||
client_unban(c);
|
client_unban(c);
|
||||||
/* we don't touch other screens windows */
|
/* we don't touch other screens windows */
|
||||||
else if(c->screen == screen)
|
else if(c->screen == screen)
|
||||||
|
|
Loading…
Reference in New Issue