aboutsummaryrefslogtreecommitdiff
path: root/client.h
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-08-18 16:59:38 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-08-23 13:28:01 -0500
commit07bf1832bf2c435107f4664c82efc756f3fdd784 (patch)
tree6af390afaa17c0781b5c8b29fd9557732c517edc /client.h
parent174919ec5342af19504661b30359068af5fcf1c1 (diff)
set monitor for clients that don't have one in updatemons()
only if selmon is enabled and the clients are mapped
Diffstat (limited to 'client.h')
-rw-r--r--client.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/client.h b/client.h
index c091b81..c54a2f3 100644
--- a/client.h
+++ b/client.h
@@ -184,6 +184,16 @@ client_is_float_type(Client *c)
}
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_wants_fullscreen(Client *c)
{
#ifdef XWAYLAND