1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-11 13:51:02 -05:00

core: stop sending NotifyMsc if frame pacing is disabled

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2022-12-16 08:52:20 +00:00
parent fbbfaad97b
commit e0e5c1e9e6
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -1540,9 +1540,11 @@ handle_present_complete_notify(session_t *ps, xcb_present_complete_notify_event_
return; return;
} }
auto cookie = xcb_present_notify_msc(ps->c, session_get_target_window(ps), 0, if (ps->frame_pacing) {
cne->msc + 1, 0, 0); auto cookie = xcb_present_notify_msc(ps->c, session_get_target_window(ps),
0, cne->msc + 1, 0, 0);
set_cant_fail_cookie(ps, cookie); set_cant_fail_cookie(ps, cookie);
}
if (cne->msc <= ps->last_msc || cne->ust == 0) { if (cne->msc <= ps->last_msc || cne->ust == 0) {
// X sometimes sends duplicate/bogus MSC events, ignore them // X sometimes sends duplicate/bogus MSC events, ignore them