mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-10 04:27:57 -05:00
opt: optimize frame skip judge
This commit is contained in:
parent
539fd233da
commit
12ab7d63ec
1 changed files with 3 additions and 3 deletions
|
|
@ -4120,9 +4120,9 @@ void rendermon(struct wl_listener *listener, void *data) {
|
|||
// 绘制客户端
|
||||
wl_list_for_each(c, &clients, link) {
|
||||
need_more_frames = client_draw_frame(c) || need_more_frames;
|
||||
if (!animations && !allow_tearing && c->configure_serial &&
|
||||
!c->isfloating && client_is_rendered_on_mon(c, m) &&
|
||||
!client_is_stopped(c)) {
|
||||
if (!animations && !(allow_tearing && frame_allow_tearing) &&
|
||||
c->configure_serial && !c->isfloating &&
|
||||
client_is_rendered_on_mon(c, m) && !client_is_stopped(c)) {
|
||||
goto skip;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue