mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-06 07:15:53 -04:00
移除无用代码
This commit is contained in:
parent
91dd5b1f1c
commit
493539053f
2 changed files with 1 additions and 9 deletions
|
|
@ -10,11 +10,9 @@ static const bool animations = true; // Enable animations
|
||||||
static const char *animation_type = "slide"; //slide or zoom
|
static const char *animation_type = "slide"; //slide or zoom
|
||||||
static const char animation_fade_in = 0; // Enable animation fade in
|
static const char animation_fade_in = 0; // Enable animation fade in
|
||||||
static const float zoom_initial_ratio = 0.5; // Initial window ratio for animations
|
static const float zoom_initial_ratio = 0.5; // Initial window ratio for animations
|
||||||
static const float fadeout_begin_opacity = 1; // Begin opacity for animations fadeout
|
|
||||||
static const float fadein_begin_opacity = 0; // Begin opacity for animations fasdein
|
static const float fadein_begin_opacity = 0; // Begin opacity for animations fasdein
|
||||||
static const uint32_t animation_duration_move = 300; // Animation move speed
|
static const uint32_t animation_duration_move = 300; // Animation move speed
|
||||||
static const uint32_t animation_duration_open = 300; // Animation open speed
|
static const uint32_t animation_duration_open = 300; // Animation open speed
|
||||||
static const uint32_t animation_duration_close = 200; // Animation close speed
|
|
||||||
static const uint32_t animation_duration_tag = 300; // Animation tag speed
|
static const uint32_t animation_duration_tag = 300; // Animation tag speed
|
||||||
// static const double animation_curve[4] = {0.05,0.9,0.1,1.05}; // Animation curve
|
// static const double animation_curve[4] = {0.05,0.9,0.1,1.05}; // Animation curve
|
||||||
static const double animation_curve[4] = {0.46,1.0,0.29,0.99}; // Animation curve
|
static const double animation_curve[4] = {0.46,1.0,0.29,0.99}; // Animation curve
|
||||||
|
|
|
||||||
8
main.c
8
main.c
|
|
@ -744,10 +744,6 @@ bool client_animation_next_tick(Client *c) {
|
||||||
client_set_opacity(c, MIN(animation_passed + fadein_begin_opacity, 1.0));
|
client_set_opacity(c, MIN(animation_passed + fadein_begin_opacity, 1.0));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c->iskilling) {
|
|
||||||
client_set_opacity(c, MAX(fadeout_begin_opacity - animation_passed, 0.1));
|
|
||||||
}
|
|
||||||
|
|
||||||
c->is_open_animation = false;
|
c->is_open_animation = false;
|
||||||
|
|
||||||
if (animation_passed == 1.0) {
|
if (animation_passed == 1.0) {
|
||||||
|
|
@ -3758,9 +3754,7 @@ void resize(Client *c, struct wlr_box geo, int interact) {
|
||||||
client_set_opacity(c, 1);
|
client_set_opacity(c, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c->iskilling) {
|
if (c->animation.tagouting) {
|
||||||
c->animation.duration = animation_duration_close;
|
|
||||||
} else if (c->animation.tagouting) {
|
|
||||||
c->animation.duration = animation_duration_tag;
|
c->animation.duration = animation_duration_tag;
|
||||||
} else if (c->animation.tagining) {
|
} else if (c->animation.tagining) {
|
||||||
c->animation.duration = animation_duration_tag;
|
c->animation.duration = animation_duration_tag;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue