[vlc-commits] [Git][videolan/vlc][master] window: use filtered mouse events
Rémi Denis-Courmont (@Courmisch)
gitlab at videolan.org
Tue Oct 18 17:32:18 UTC 2022
Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC
Commits:
3b6a553c by Maxim Biro at 2022-10-18T17:17:37+00:00
window: use filtered mouse events
Make window/GUI use filtered mouse events, as it was the case in VLC3
and VLC2.
- - - - -
1 changed file:
- src/video_output/video_window.c
Changes:
=====================================
src/video_output/video_window.c
=====================================
@@ -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;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3b6a553c70b4a9a5a569042a28728d6da5964210
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3b6a553c70b4a9a5a569042a28728d6da5964210
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