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:
parent
fbbfaad97b
commit
e0e5c1e9e6
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue