Skip to content

Commit

Permalink
core: reject bogus PresentCompleteNotify
Browse files Browse the repository at this point in the history
Upstream bug report:
https://gitlab.freedesktop.org/xorg/xserver/-/issues/1418

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
  • Loading branch information
yshui committed Dec 16, 2022
1 parent ee66392 commit dfa9dbe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/picom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1525,8 +1525,9 @@ handle_present_complete_notify(session_t *ps, xcb_present_complete_notify_event_
set_cant_fail_cookie(ps, cookie);
}

if (cne->msc <= ps->last_msc) {
// X sometimes sends duplicate MSC events, ignore them
if (cne->msc <= ps->last_msc || cne->ust == 0) {
// X sometimes sends duplicate/bogus MSC events, ignore them
// See: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1418
return;
}

Expand Down

0 comments on commit dfa9dbe

Please sign in to comment.