mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-07-04 00:07:04 -04:00
opt: optimize shield_when_capture of layer
This commit is contained in:
parent
ed31b411c5
commit
c644c43d28
2 changed files with 5 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ layerrule=layer_name:Values,Parameter:Values,Parameter:Values
|
||||||
| `noblur` | integer | `0` / `1` | Disable blur |
|
| `noblur` | integer | `0` / `1` | Disable blur |
|
||||||
| `noanim` | integer | `0` / `1` | Disable layer animation |
|
| `noanim` | integer | `0` / `1` | Disable layer animation |
|
||||||
| `noshadow` | integer | `0` / `1` | Disable layer shadow |
|
| `noshadow` | integer | `0` / `1` | Disable layer shadow |
|
||||||
| `shield_when_capture`| integer | `0` / `1` | Shield layer when captured |
|
| `shield_when_capture`| integer | `0` / `1` | Shield layer when captured.(it is better to combination with `noanim:1`) |
|
||||||
|
|
||||||
> **Tip:** For animation types, see [Animations](/docs/visuals/animations#animation-types). For visual effects, see [Window Effects](/docs/visuals/effects).
|
> **Tip:** For animation types, see [Animations](/docs/visuals/animations#animation-types). For visual effects, see [Window Effects](/docs/visuals/effects).
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -408,6 +408,10 @@ void init_fadeout_layers(LayerSurface *l) {
|
||||||
if (!l->mon || !l->scene)
|
if (!l->mon || !l->scene)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (l->shield_when_capture) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ((l->animation_type_close &&
|
if ((l->animation_type_close &&
|
||||||
strcmp(l->animation_type_close, "none") == 0) ||
|
strcmp(l->animation_type_close, "none") == 0) ||
|
||||||
(!l->animation_type_close &&
|
(!l->animation_type_close &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue