mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-31 22:25:29 -04:00
opt:optimize buffer scale need judge
This commit is contained in:
parent
b7fbbfaf6f
commit
ae865e67bd
2 changed files with 3 additions and 3 deletions
|
|
@ -3,7 +3,7 @@ animations=1
|
||||||
animation_type=slide
|
animation_type=slide
|
||||||
animation_fade_in=1
|
animation_fade_in=1
|
||||||
zoom_initial_ratio=0.5
|
zoom_initial_ratio=0.5
|
||||||
fadein_begin_opacity=0
|
fadein_begin_opacity=0.5
|
||||||
animation_duration_move=500
|
animation_duration_move=500
|
||||||
animation_duration_open=400
|
animation_duration_open=400
|
||||||
animation_duration_tag=350
|
animation_duration_tag=350
|
||||||
|
|
|
||||||
4
maomao.c
4
maomao.c
|
|
@ -3655,7 +3655,7 @@ 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->animation.current.width <= c->current.width && c->animation.current.height <= c->geom.height) {
|
if (c->animation.current.width <= c->geom.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) {
|
||||||
|
|
@ -3815,7 +3815,7 @@ int is_special_animaiton_rule(Client *c) {
|
||||||
Client *count_c;
|
Client *count_c;
|
||||||
wl_list_for_each(count_c, &clients, link) {
|
wl_list_for_each(count_c, &clients, link) {
|
||||||
if (count_c && VISIBLEON(count_c, selmon) && !count_c->isminied &&
|
if (count_c && VISIBLEON(count_c, selmon) && !count_c->isminied &&
|
||||||
!count_c->iskilling) {
|
!count_c->iskilling && !count_c->isfloating) {
|
||||||
visible_client_number++;
|
visible_client_number++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue