From 1c6d74dd91d53294a00bc0246047119c1b47f879 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 20 Aug 2017 23:10:51 +0200 Subject: Fix window dragging while using custom key bindings closes #45 --- mpv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit