From 6a55fa679373e65d4be838c1cb0724c0d1ed2d20 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 31 Aug 2013 21:59:37 +0200 Subject: input: allow window dragging even if mouse is in a mouse area If the input section is enabled with MP_INPUT_ALLOW_VO_DRAGGING, then the VO will be allowed to drag the window with mouse button down + mouse move even if the mouse is inside the section's mouse area. --- mpvcore/input/input.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mpvcore/input/input.h') diff --git a/mpvcore/input/input.h b/mpvcore/input/input.h index 022ebb3881..ebdbc76821 100644 --- a/mpvcore/input/input.h +++ b/mpvcore/input/input.h @@ -116,6 +116,8 @@ enum mp_input_section_flags { // other sections for it (like the default section). Instead, an unbound // key warning will be printed. MP_INPUT_EXCLUSIVE = 1, + // Let mp_input_test_dragging() return true, even if inside the mouse area. + MP_INPUT_ALLOW_VO_DRAGGING = 2, }; struct input_ctx; -- cgit v1.2.3