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. --- old-configure | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'old-configure') diff --git a/old-configure b/old-configure index cc0945f956..0bfac3633c 100755 --- a/old-configure +++ b/old-configure @@ -169,7 +169,6 @@ options_state_machine() { opt_yes_no _lirc "LIRC (remote control) support" opt_yes_no _joystick "joystick support" no opt_yes_no _vm "X video mode extensions" - opt_yes_no _xf86keysym "support for multimedia keys" opt_yes_no _dvb "DVB input" opt_yes_no _tv "TV interface (TV/DVB grabbers)" yes opt_yes_no _tv_v4l2 "Video4Linux2 TV interface" @@ -201,7 +200,7 @@ options_state_machine() { opt_yes_no _xv "Xv video output" opt_yes_no _vdpau "VDPAU acceleration" opt_yes_no _vaapi "VAAPI acceleration" - opt_yes_no _vm "XF86VidMode support (used for monitor FPS detection)" + opt_yes_no _xrandr "Xrandr support (used for monitor FPS detection)" opt_yes_no _xinerama "Xinerama support" opt_yes_no _x11 "X11 video output" opt_yes_no _wayland "Wayland video output" @@ -635,7 +634,7 @@ fi check_pkg_config "Xinerama" $_xinerama XINERAMA 'xinerama' -check_pkg_config "Xxf86vm" $_vm XF86VM 'xxf86vm' +check_pkg_config "Xrandr" $_xrandr XRANDR 'xrandr' # Check for the presence of special keycodes, like audio control buttons # that XFree86 might have. Used to be bundled with the xf86vm check, but -- cgit v1.2.3