feat: add windowrule option isnoshadow,isnoanimation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user