summaryrefslogtreecommitdiff
path: root/mpv.py
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2017-08-20 23:10:51 +0200
committerjaseg <code@jaseg.net>2017-08-20 23:12:20 +0200
commit1c6d74dd91d53294a00bc0246047119c1b47f879 (patch)
tree23e54ea565779744cc98173d022ccb3f9116c940 /mpv.py
parent13191bfeb912499d50cd87342527c458a3a58dd1 (diff)
downloadpython-mpv-1c6d74dd91d53294a00bc0246047119c1b47f879.tar.gz
python-mpv-1c6d74dd91d53294a00bc0246047119c1b47f879.tar.bz2
python-mpv-1c6d74dd91d53294a00bc0246047119c1b47f879.zip
Fix window dragging while using custom key bindings
closes #45
Diffstat (limited to 'mpv.py')
-rw-r--r--mpv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpv.py b/mpv.py
index 5f92d3d..d8624f3 100644
--- a/mpv.py
+++ b/mpv.py
@@ -972,7 +972,7 @@ class MPV(object):
self.command('define-section', binding_name, '{} {}'.format(keydef, callback_or_cmd), mode)
else:
raise TypeError('register_key_binding expects either an str with an mpv command or a python callable.')
- self.command('enable-section', binding_name)
+ self.command('enable-section', binding_name, 'allow-hide-cursor+allow-vo-dragging')
def _handle_key_binding_message(self, binding_name, key_state, key_name):
self._key_binding_handlers[binding_name](key_state, key_name)