mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-21 01:40:21 -05:00
feat: add windowrule option isnoshadow,isnoanimation
This commit is contained in:
parent
649cfdb54c
commit
beaa4ce902
3 changed files with 18 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue