Commit 53d410c3 authored by Pierre Lamot's avatar Pierre Lamot Committed by Jean-Baptiste Kempf

vout: on windows context menu should apear on mouse release

Yes, Windows does it the wrong way... What can we do?

Close #19025
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 190b51b3
......@@ -80,7 +80,9 @@ static inline void vout_SendEventMousePressed(vout_thread_t *vout, int button)
var_ToggleBool(vout->obj.libvlc, "intf-toggle-fscontrol");
return;
case MOUSE_BUTTON_RIGHT:
#if !defined(_WIN32)
var_SetBool(vout->obj.libvlc, "intf-popupmenu", true);
#endif
return;
case MOUSE_BUTTON_WHEEL_UP: key = KEY_MOUSEWHEELUP; break;
case MOUSE_BUTTON_WHEEL_DOWN: key = KEY_MOUSEWHEELDOWN; break;
......@@ -92,6 +94,14 @@ static inline void vout_SendEventMousePressed(vout_thread_t *vout, int button)
static inline void vout_SendEventMouseReleased(vout_thread_t *vout, int button)
{
var_NAndInteger(vout, "mouse-button-down", 1 << button);
#if defined(_WIN32)
switch (button)
{
case MOUSE_BUTTON_RIGHT:
var_SetBool(vout->obj.libvlc, "intf-popupmenu", true);
return;
}
#endif
}
static inline void vout_SendEventMouseDoubleClick(vout_thread_t *vout)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment