[vlc-commits] [Git][videolan/vlc][master] window: only toggle fullscreen when double clicking with the left mouse button

Rémi Denis-Courmont (@Courmisch) gitlab at videolan.org
Sat Oct 8 13:15:47 UTC 2022



Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
ae750acf by Pierre Lamot at 2022-10-08T12:20:19+00:00
window: only toggle fullscreen when double clicking with the left mouse button

fix: #27388

- - - - -


1 changed file:

- src/video_output/video_window.c


Changes:

=====================================
src/video_output/video_window.c
=====================================
@@ -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;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ae750acfee8f2ed6b31c74cc27fa6894eefcdda7

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ae750acfee8f2ed6b31c74cc27fa6894eefcdda7
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list