From e2182bb00bb418d616dc047d1f2c280e952f8df3 Mon Sep 17 00:00:00 2001 From: Dan Elkouby Date: Fri, 14 Dec 2018 19:22:45 +0200 Subject: [PATCH] Work around mesa's default-on swap control --- src/compton.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compton.c b/src/compton.c index 07f7544e3a..b3f9f546c6 100644 --- a/src/compton.c +++ b/src/compton.c @@ -4630,6 +4630,9 @@ vsync_opengl_swc_deinit(session_t *ps) { */ bool vsync_init(session_t *ps) { + // Mesa turns on swap control by default, undo that + vsync_opengl_swc_swap_interval(ps, 0); + if (ps->o.vsync && VSYNC_FUNCS_INIT[ps->o.vsync] && !VSYNC_FUNCS_INIT[ps->o.vsync](ps)) { ps->o.vsync = VSYNC_NONE;