From e11979432c73395f00c52def04f3f2b35ca4ad3c Mon Sep 17 00:00:00 2001 From: Alexander Leonhardt Date: Sat, 5 Sep 2026 11:04:49 +0200 Subject: Added dim unfocused patch --- client.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client.h') diff --git a/client.h b/client.h index d9f90bb..7a7792d 100644 --- a/client.h +++ b/client.h @@ -318,6 +318,12 @@ client_set_border_color(Client *c, const float color[static 4]) wlr_scene_rect_set_color(c->border[i], color); } +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) { -- cgit