compositor: Add support for adaptive vsync with GLX
Adaptive vsync, or its proprietary equivalent g-sync, works by using -1 as the swap interval.
Add support for GLX_EXT_swap_control_tear to check whether this is safe to use, so that we can support adaptive vsync where available.
Signed-off-by: Olivier Fourdan fourdan@xfce.org Closes: #515