patch: dim-unfocused

This commit is contained in:
Zhongheng Liu 2026-01-01 19:27:42 +01:00
commit e3f8b3e1db
Signed by: steven
GPG key ID: 805A28B071DAD84B
5 changed files with 284 additions and 16 deletions

View file

@ -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)
{