diff options
author | Richard Grenville <pyxlcy@gmail.com> | 2014-01-19 08:04:14 +0800 |
---|---|---|
committer | Richard Grenville <pyxlcy@gmail.com> | 2014-01-19 08:04:14 +0800 |
commit | 96ea32f1792776c20041a2485719a9caa927f5de (patch) | |
tree | 6299574ba62550c9874d584de05c23ca638cfb14 /compton.c | |
parent | 5ae38a62db338cb00d3cb17e3d6b4b93d7c01720 (diff) | |
download | tdebase-96ea32f1792776c20041a2485719a9caa927f5de.tar.gz tdebase-96ea32f1792776c20041a2485719a9caa927f5de.zip |
Bug fix #163: xr_glx_hybrid: Flickering issue
xr_glx_hybrid backend: Attempt to fix flickering issue. Thanks to cju
for testing.
Diffstat (limited to 'compton.c')
-rw-r--r-- | compton.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1950,6 +1950,13 @@ paint_all(session_t *ps, XserverRegion region, XserverRegion region_real, win *t paint_bind_tex_real(ps, &ps->tgt_buffer, ps->root_width, ps->root_height, ps->depth, !ps->o.glx_no_rebind_pixmap); + // See #163 + XSync(ps->dpy, False); + if (ps->o.vsync_use_glfinish) + glFinish(); + else + glFlush(); + glXWaitX(); glx_render(ps, ps->tgt_buffer.ptex, 0, 0, 0, 0, ps->root_width, ps->root_height, 0, 1.0, false, region_real, NULL); // No break here! |