Commit 1fce4b4d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB: trigger the pop-up menu

IMHO, this should really be a vout variable though - how is the UI
supposed to know which video output is triggering otherwise?
parent 5d682437
......@@ -53,8 +53,16 @@ static void HandleButtonRelease (vout_thread_t *vout,
buttons &= ~(1 << (ev->detail - 1));
var_SetInteger (vout, "mouse-button-down", buttons);
if (ev->detail == 1) /* left mouse button */
var_SetBool (vout, "mouse-clicked", true);
switch (ev->detail)
{
case 1: /* left mouse button */
var_SetBool (vout, "mouse-clicked", true);
var_SetBool (vout->p_libvlc, "intf-popupmenu", false);
break;
case 3:
var_SetBool (vout->p_libvlc, "intf-popupmenu", true);
break;
}
}
static void HandleMotionNotify (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