mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-08 13:29:56 -05:00
feat: layer open and close type set support
This commit is contained in:
parent
e046053954
commit
b289b6ca97
4 changed files with 72 additions and 18 deletions
14
src/maomao.c
14
src/maomao.c
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue