summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Constantino <wiiaboo@gmail.com>2016-10-26 17:16:50 +0100
committerRicardo Constantino <wiiaboo@gmail.com>2016-10-29 18:14:29 +0100
commit22133f8efc7b1593ba79c56065c8c06b5055c45a (patch)
treedda2c82b6701ffa1ce3405d249c2ffd63a7d2b71
parent4abd23bd9507ed249f58a9f3b2053ee27eb0cfd2 (diff)
downloadmpv-22133f8efc7b1593ba79c56065c8c06b5055c45a.tar.bz2
mpv-22133f8efc7b1593ba79c56065c8c06b5055c45a.tar.xz
osc: compromise on default deadzonesize
This way people can still use the mouse to quickly check the elapsed time without moving it all the way to the bottom while still having half the screen to ignore mouse movement.
-rw-r--r--DOCS/man/osc.rst2
-rw-r--r--player/lua/osc.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/DOCS/man/osc.rst b/DOCS/man/osc.rst
index f4e4b5b670..c5c75d6a72 100644
--- a/DOCS/man/osc.rst
+++ b/DOCS/man/osc.rst
@@ -158,7 +158,7 @@ Configurable Options
Default pre-0.21.0 was 'slider'.
``deadzonesize``
- | Default: 1.0
+ | Default: 0.5
| Size of the deadzone. The deadzone is an area that makes the mouse act
like leaving the window. Movement there won't make the OSC show up and
it will hide immediately if the mouse enters it. The deadzone starts
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index 30d080b429..3a6328d7e2 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -25,14 +25,14 @@ local user_opts = {
-- mouse movement. enforced non-negative for the
-- user, but internally negative is "always-on".
fadeduration = 200, -- duration of fade out in ms, 0 = no fade
- deadzonesize = 1, -- size of deadzone
+ deadzonesize = 0.5, -- size of deadzone
minmousemove = 0, -- minimum amount of pixels the mouse has to
-- move between ticks to make the OSC show up
iamaprogrammer = false, -- use native mpv values and disable OSC
-- internal track list management (and some
-- functions that depend on it)
layout = "bottombar",
- seekbarstyle = "bar", -- slider (diamond marker) or bar (fill)
+ seekbarstyle = "bar", -- slider (diamond marker) or bar (fill)
tooltipborder = 1, -- border of tooltip in bottom/topbar
timetotal = false, -- display total time instead of remaining time?
timems = false, -- display timecodes with milliseconds?