Skip to content

Commit 04874ca

Browse files
committed
opt: avoid useless buffer scale
1 parent 2251b4e commit 04874ca

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

maomao.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3651,9 +3651,9 @@ void scene_buffer_apply_size(struct wlr_scene_buffer *buffer, int sx, int sy, vo
36513651
}
36523652

36533653
void buffer_set_size(Client *c, animationScale data) {
3654-
// if (c->animainit_geom.width <= c->current.width && c->animainit_geom.height <= c->geom.height) {
3655-
// return;
3656-
// }
3654+
if (c->animation.current.width <= c->current.width && c->animation.current.height <= c->geom.height) {
3655+
return;
3656+
}
36573657
if(c->iskilling|| c->animation.tagouting || c->animation.tagining || c->animation.tagouted) {
36583658
return;
36593659
}
@@ -4392,7 +4392,6 @@ void signalhandler(int signalnumber) {
43924392

43934393
int timer_tick_action(void *data) {
43944394
Client *c = (Client *)data;
4395-
bool need_more_frames = false;
43964395

43974396
if (c->animation.running) {
43984397
wlr_output_schedule_frame(c->mon->wlr_output);

0 commit comments

Comments
 (0)