mirror of https://github.com/yshui/picom.git
x: fix x_request_vblank_event
present_notify_msc with divisor == 0 has undocumented special meaning, it means async present notify, which means we could receive MSC notifications from the past. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
3838b45e2c
commit
25d16b0352
3
src/x.c
3
src/x.c
|
@ -780,8 +780,7 @@ err:
|
|||
}
|
||||
|
||||
void x_request_vblank_event(struct x_connection *c, xcb_window_t window, uint64_t msc) {
|
||||
auto cookie =
|
||||
xcb_present_notify_msc(c->c, window, 0, msc, 0, 0);
|
||||
auto cookie = xcb_present_notify_msc(c->c, window, 0, msc, 1, 0);
|
||||
set_cant_fail_cookie(c, cookie);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue