From fe782a6e957c1f2d472a91eceef01ca5fd6f5cb7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 16 Aug 2014 21:43:13 +0200 Subject: x11: use xrandr to retrieve display refresh rate Drop use of the ancient XF86VM, and use the slightly less ancient Xrandr extension to retrieve the refresh rate. Xrandr has the advantage that it supports multiple monitors (at least the modern version of it). For now, we don't attempt any dynamic reconfiguration. We don't request and listen to Xrandr events, and we don't notify the VO code of changes in the refresh rate. (The later works by assuming that X coordinates map directly to Xrandr coordinates, which probably is wrong with compositing window manager, at least if these use complicated transformations. But I know of no API to handle this.) It would be nice to drop use of the Xinerama extension too, but unfortunately, at least one EWMH feature uses Xinerama screen numbers, and I don't know how that maps to Xrandr outputs. --- waftools/fragments/xf86vm.c | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 waftools/fragments/xf86vm.c (limited to 'waftools/fragments') diff --git a/waftools/fragments/xf86vm.c b/waftools/fragments/xf86vm.c deleted file mode 100644 index 195e514d6c..0000000000 --- a/waftools/fragments/xf86vm.c +++ /dev/null @@ -1,8 +0,0 @@ -#include -#include - -int main(int argc, char **argv) -{ - XF86VidModeQueryExtension(0, 0, 0); - return 0; -} -- cgit v1.2.3