chase wlroots map logic unification

Signed-off-by: Leonardo Hernández Hernández <leohdz172@proton.me>
This commit is contained in:
Leonardo Hernández Hernández 2023-06-02 21:34:22 -06:00
parent a8ccbe63f3
commit 06bc65549f
No known key found for this signature in database
GPG key ID: E538897EE11B9624
2 changed files with 40 additions and 25 deletions

View file

@ -225,16 +225,6 @@ client_is_float_type(Client *c)
&& (min.width == max.width || min.height == max.height));
}
static inline int
client_is_mapped(Client *c)
{
#ifdef XWAYLAND
if (client_is_x11(c))
return c->surface.xwayland->mapped;
#endif
return c->surface.xdg->mapped;
}
static inline int
client_is_rendered_on_mon(Client *c, Monitor *m)
{