Skip to content

Commit e2182bb

Browse files
committedDec 14, 2018
Work around mesa's default-on swap control
1 parent de1cce2 commit e2182bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/compton.c

+3
Original file line numberDiff line numberDiff line change
@@ -4630,6 +4630,9 @@ vsync_opengl_swc_deinit(session_t *ps) {
46304630
*/
46314631
bool
46324632
vsync_init(session_t *ps) {
4633+
// Mesa turns on swap control by default, undo that
4634+
vsync_opengl_swc_swap_interval(ps, 0);
4635+
46334636
if (ps->o.vsync && VSYNC_FUNCS_INIT[ps->o.vsync]
46344637
&& !VSYNC_FUNCS_INIT[ps->o.vsync](ps)) {
46354638
ps->o.vsync = VSYNC_NONE;

0 commit comments

Comments
 (0)