mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-07-13 11:04:33 -04:00
fix: miss frame request before animaiton stop
This commit is contained in:
parent
bf6289cf8d
commit
bcb4f12e0b
1 changed files with 5 additions and 1 deletions
|
|
@ -1581,6 +1581,9 @@ bool client_apply_focus_opacity(Client *c) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool client_draw_frame(Client *c) {
|
bool client_draw_frame(Client *c) {
|
||||||
|
|
||||||
|
bool need_more_frame = false;
|
||||||
|
|
||||||
if (!c || !client_surface(c)->mapped)
|
if (!c || !client_surface(c)->mapped)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
@ -1588,6 +1591,7 @@ bool client_draw_frame(Client *c) {
|
||||||
return client_apply_focus_opacity(c);
|
return client_apply_focus_opacity(c);
|
||||||
|
|
||||||
if (config.animations && c->animation.running) {
|
if (config.animations && c->animation.running) {
|
||||||
|
need_more_frame = true;
|
||||||
client_animation_next_tick(c);
|
client_animation_next_tick(c);
|
||||||
} else {
|
} else {
|
||||||
wlr_scene_node_set_position(&c->scene->node, c->pending.x,
|
wlr_scene_node_set_position(&c->scene->node, c->pending.x,
|
||||||
|
|
@ -1597,5 +1601,5 @@ bool client_draw_frame(Client *c) {
|
||||||
client_apply_clip(c, 1.0);
|
client_apply_clip(c, 1.0);
|
||||||
c->need_output_flush = false;
|
c->need_output_flush = false;
|
||||||
}
|
}
|
||||||
return client_apply_focus_opacity(c);
|
return need_more_frame || client_apply_focus_opacity(c);
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue