feat: layer open and close type set support

This commit is contained in:
DreamMaoMao 2025-07-11 23:04:39 +08:00
parent 43dba2151e
commit 02d70831b5
4 changed files with 64 additions and 18 deletions

View file

@ -377,6 +377,8 @@ typedef struct {
int noblur;
int noanim;
int noshadow;
char *animation_type_open;
char *animation_type_close;
bool need_output_flush;
} LayerSurface;
@ -2531,6 +2533,14 @@ void maplayersurfacenotify(struct wl_listener *listener, void *data) {
if (config.layer_rules[ji].noshadow > 0) {
l->noshadow = 1;
}
if (config.layer_rules[ji].animation_type_open) {
l->animation_type_open =
config.layer_rules[ji].animation_type_open;
}
if (config.layer_rules[ji].animation_type_close) {
l->animation_type_close =
config.layer_rules[ji].animation_type_close;
}
}
}