feat: add windowrule option isnoshadow,isnoanimation

This commit is contained in:
DreamMaoMao
2025-11-06 19:01:18 +08:00
parent 40b6f82823
commit 5b60999075
3 changed files with 18 additions and 1 deletions

View File

@@ -251,7 +251,7 @@ void buffer_set_effect(Client *c, BufferData data) {
void client_draw_shadow(Client *c) {
if (c->iskilling || !client_surface(c)->mapped)
if (c->iskilling || !client_surface(c)->mapped || c->isnoshadow)
return;
if (!shadows || (!c->isfloating && shadow_only_floating)) {
@@ -888,6 +888,11 @@ void client_set_pending_state(Client *c) {
c->animation.duration = 0;
}
if (c->isnoanimation) {
c->animation.should_animate = false;
c->animation.duration = 0;
}
// 开始动画
client_commit(c);
c->dirty = true;