summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-04-04 01:13:56 +0200
committerwm4 <wm4@nowhere>2013-04-24 18:07:01 +0200
commitd853abafc3e0f3de06e6cf86908f5bf2aba8f7c0 (patch)
treedf7cd78ebaddfe158cd64bc2fcf5e8225004cb87 /configure
parent97be5ead1401f48571a073d63a75fad7d29b4d56 (diff)
downloadmpv-d853abafc3e0f3de06e6cf86908f5bf2aba8f7c0.tar.bz2
mpv-d853abafc3e0f3de06e6cf86908f5bf2aba8f7c0.tar.xz
x11: use mpv internal key auto-repeat handling if possible
Block X11's native key repeat, and use mpv's key repeat handling in input.c instead. No configure check for XKB. Even though it's an extension, it has been part of most (all?) xlibs since 1996. If XKB appears to be missing, just refuse enabling x11. This is a potentially controversial change. mpv will use its own key repeat rate, instead of X11's. This should be better, because seeking will have a standardized "speed" (seek events per seconds when keeping a seek key held down). It will also allow disabling key repears for certain commands, though this is not done anywhere yet. The new behavior can be disabled with the --native-keyrepeat option.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 76b8a9222b..2f33e80974 100755
--- a/configure
+++ b/configure
@@ -1829,7 +1829,7 @@ if test "$_x11" = auto && test "$_x11_headers" = yes ; then
else
_ld_tmp="$I -lXext -lX11 $_ld_pthread"
fi
- statement_check X11/Xutil.h 'XCreateWindow(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)' $_ld_tmp &&
+ statement_check_broken X11/Xutil.h X11/XKBlib.h 'XCreateWindow(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)' $_ld_tmp &&
_x11=yes
# Check that there aren't conflicting headers between ApplicationServices
# and X11. On versions of Mac OSX prior to 10.7 the deprecated QuickDraw API