Skip to content
Discussion options

You must be logged in to vote

With the following script, Ctrl+MBTN_LEFT will drag window and MBTN_LEFT alone will no longer drag and is free to do whatever you want.

mp.set_property_number("input-dragging-deadzone", 1920)

mp.add_forced_key_binding("Ctrl+MBTN_LEFT", "ctrldrag", function(kevent)
    if kevent.event == "down" then
        mp.command("begin-vo-dragging")
    end
end, {
    repeatable = false,
    complex = true
})

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #17466 on February 27, 2026 09:14.