feat: layer open and close type set support
This commit is contained in:
10
src/maomao.c
10
src/maomao.c
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user