From e0e5c1e9e63f795306ffc3fdde2ae91c7d358202 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Fri, 16 Dec 2022 08:52:20 +0000 Subject: [PATCH] core: stop sending NotifyMsc if frame pacing is disabled Signed-off-by: Yuxuan Shui --- src/picom.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/picom.c b/src/picom.c index 683e4f21..9dd8fe68 100644 --- a/src/picom.c +++ b/src/picom.c @@ -1540,9 +1540,11 @@ handle_present_complete_notify(session_t *ps, xcb_present_complete_notify_event_ return; } - 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); + if (ps->frame_pacing) { + 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); + } if (cne->msc <= ps->last_msc || cne->ust == 0) { // X sometimes sends duplicate/bogus MSC events, ignore them