mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-25 06:59:50 -05:00
feat: layer open and close type set support
This commit is contained in:
parent
43dba2151e
commit
02d70831b5
4 changed files with 64 additions and 18 deletions
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue