feat: layer open and close type set support

This commit is contained in:
DreamMaoMao 2025-07-11 23:04:39 +08:00
parent e046053954
commit b289b6ca97
4 changed files with 72 additions and 18 deletions

View file

@ -367,6 +367,9 @@ typedef struct {
struct dwl_animation animation;
bool dirty;
int noanim;
int noshadow;
char *animation_type_open;
char *animation_type_close;
bool need_output_flush;
} LayerSurface;
@ -2490,6 +2493,17 @@ void maplayersurfacenotify(struct wl_listener *listener, void *data) {
if (config.layer_rules[ji].noanim > 0) {
l->noanim = 1;
}
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;
}
}
}