Skip to content
Snippets Groups Projects
Commit 3b6a553c authored by nurupo's avatar nurupo Committed by Rémi Denis-Courmont
Browse files

window: use filtered mouse events

Make window/GUI use filtered mouse events, as it was the case in VLC3
and VLC2.
parent b0c7efaf
No related branches found
Tags 2.8.9 tv1.1.3
1 merge request!2699window: use filtered mouse events
Pipeline #274574 failed with stages
in 1 hour, 21 minutes, and 56 seconds
......@@ -197,8 +197,8 @@ static void vout_display_window_MouseEvent(vlc_window_t *window,
if (vlc_mouse_HasMoved(&state->mouse.video, &video_mouse))
var_SetCoords(vout, "mouse-moved", m->i_x, m->i_y);
if (vlc_mouse_HasButton(&state->mouse.video, &video_mouse))
var_SetInteger(vout, "mouse-button-down", m->i_pressed);
if (m->b_double_click && ev->button_mask == MOUSE_BUTTON_LEFT)
var_SetInteger(vout, "mouse-button-down", video_mouse.i_pressed);
if (video_mouse.b_double_click && vlc_mouse_IsLeftPressed(&video_mouse))
var_ToggleBool(vout, "fullscreen");
state->mouse.video = video_mouse;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment