feat: add windowrule option isnoshadow,isnoanimation

This commit is contained in:
DreamMaoMao 2025-11-06 19:01:18 +08:00
parent 649cfdb54c
commit beaa4ce902
3 changed files with 18 additions and 1 deletions

View file

@ -230,7 +230,7 @@ void buffer_set_effect(Client *c, BufferData data) {
void apply_border(Client *c) {
bool hit_no_border = false;
if (c->iskilling || !client_surface(c)->mapped)
if (c->iskilling || !client_surface(c)->mapped || c->isnoshadow)
return;
hit_no_border = check_hit_no_border(c);
@ -767,6 +767,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;