Skip to content

Commit

Permalink
Work around mesa's default-on swap control
Browse files Browse the repository at this point in the history
  • Loading branch information
9ary committed Dec 14, 2018
1 parent de1cce2 commit e2182bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/compton.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e2182bb

Please sign in to comment.