feat: add shadow_only_floating option

This commit is contained in:
DreamMaoMao 2025-07-05 15:24:12 +08:00
parent e13ad18721
commit e3c9c784b6
4 changed files with 8 additions and 1 deletions

View file

@ -1214,7 +1214,7 @@ void client_draw_shadow(Client *c) {
if (c->iskilling || !client_surface(c)->mapped)
return;
if (!shadows || !c->isfloating) {
if (!shadows || (!c->isfloating && shadow_only_floating)) {
wlr_scene_shadow_set_size(c->shadow, 0, 0);
return;
}