mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-26 07:00:03 -05:00
opt: avoid useless buffer scale
This commit is contained in:
parent
2251b4e471
commit
04874caab4
1 changed files with 3 additions and 4 deletions
7
maomao.c
7
maomao.c
|
|
@ -3651,9 +3651,9 @@ void scene_buffer_apply_size(struct wlr_scene_buffer *buffer, int sx, int sy, vo
|
||||||
}
|
}
|
||||||
|
|
||||||
void buffer_set_size(Client *c, animationScale data) {
|
void buffer_set_size(Client *c, animationScale data) {
|
||||||
// if (c->animainit_geom.width <= c->current.width && c->animainit_geom.height <= c->geom.height) {
|
if (c->animation.current.width <= c->current.width && c->animation.current.height <= c->geom.height) {
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
if(c->iskilling|| c->animation.tagouting || c->animation.tagining || c->animation.tagouted) {
|
if(c->iskilling|| c->animation.tagouting || c->animation.tagining || c->animation.tagouted) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -4392,7 +4392,6 @@ void signalhandler(int signalnumber) {
|
||||||
|
|
||||||
int timer_tick_action(void *data) {
|
int timer_tick_action(void *data) {
|
||||||
Client *c = (Client *)data;
|
Client *c = (Client *)data;
|
||||||
bool need_more_frames = false;
|
|
||||||
|
|
||||||
if (c->animation.running) {
|
if (c->animation.running) {
|
||||||
wlr_output_schedule_frame(c->mon->wlr_output);
|
wlr_output_schedule_frame(c->mon->wlr_output);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue