Skip to content
Snippets Groups Projects
Commit ae750acf authored by Pierre Lamot's avatar Pierre Lamot Committed by Rémi Denis-Courmont
Browse files

window: only toggle fullscreen when double clicking with the left mouse button

fix: #27388
parent d7721bdd
No related branches found
No related tags found
1 merge request!2660window: only toggle fullscreen when double clicking with the left mouse button
Pipeline #270681 passed with stage
in 15 minutes and 17 seconds
......@@ -198,7 +198,7 @@ static void vout_display_window_MouseEvent(vlc_window_t *window,
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)
if (m->b_double_click && ev->button_mask == MOUSE_BUTTON_LEFT)
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