aboutsummaryrefslogtreecommitdiffstats
path: root/client.h
diff options
context:
space:
mode:
authorAlexander Leonhardt <equinox.salexander@gmail.com>
2026-09-05 11:09:16 +0200
committerAlexander Leonhardt <equinox.salexander@gmail.com>
2026-09-05 11:09:16 +0200
commit64cff39ca346dad8e7cf9e03413a473bb44fed14 (patch)
tree3bf92b164cde0ab0c92cb3945d0e1bfd1bf5d3a8 /client.h
parentd2602b87d051a5f0f4e0c6550db6346742314f70 (diff)
parente11979432c73395f00c52def04f3f2b35ca4ad3c (diff)
downloaddwl-64cff39ca346dad8e7cf9e03413a473bb44fed14.tar.gz
dwl-64cff39ca346dad8e7cf9e03413a473bb44fed14.tar.bz2
dwl-64cff39ca346dad8e7cf9e03413a473bb44fed14.zip
Merge branch 'dim-unfocused' into merged
Diffstat (limited to 'client.h')
-rw-r--r--client.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/client.h b/client.h
index d9f90bb..7a7792d 100644
--- a/client.h
+++ b/client.h
@@ -319,6 +319,12 @@ client_set_border_color(Client *c, const float color[static 4])
}
static inline void
+client_set_dimmer_state(Client *c, const int dim)
+{
+ wlr_scene_node_set_enabled(&c->dimmer->node, DIMOPT && !c->neverdim && dim);
+}
+
+static inline void
client_set_fullscreen(Client *c, int fullscreen)
{
#ifdef XWAYLAND