Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
8bf2942e
Commit
8bf2942e
authored
Aug 06, 2017
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
window: report all double clicks
Because we can.
parent
ca39ff33
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
include/vlc_vout_window.h
include/vlc_vout_window.h
+3
-2
modules/gui/qt/components/interface_widgets.cpp
modules/gui/qt/components/interface_widgets.cpp
+3
-2
src/video_output/video_output.c
src/video_output/video_output.c
+2
-1
No files found.
include/vlc_vout_window.h
View file @
8bf2942e
...
...
@@ -358,10 +358,11 @@ static inline void vout_window_ReportMouseReleased(vout_window_t *window,
/**
* Send a mouse double click event
*/
static
inline
void
vout_window_ReportMouseDoubleClick
(
vout_window_t
*
window
)
static
inline
void
vout_window_ReportMouseDoubleClick
(
vout_window_t
*
window
,
int
button
)
{
const
vout_window_mouse_event_t
mouse
=
{
VOUT_WINDOW_MOUSE_DOUBLE_CLICK
,
0
,
0
,
0
,
VOUT_WINDOW_MOUSE_DOUBLE_CLICK
,
0
,
0
,
button
,
};
vout_window_SendMouseEvent
(
window
,
&
mouse
);
}
...
...
modules/gui/qt/components/interface_widgets.cpp
View file @
8bf2942e
...
...
@@ -349,9 +349,10 @@ void VideoWidget::mouseMoveEvent( QMouseEvent *event )
void
VideoWidget
::
mouseDoubleClickEvent
(
QMouseEvent
*
event
)
{
if
(
qtMouseButton2VLC
(
event
->
button
()
)
==
0
)
int
vlc_button
=
qtMouseButton2VLC
(
event
->
button
()
);
if
(
vlc_button
>=
0
)
{
vout_window_ReportMouseDoubleClick
(
p_window
);
vout_window_ReportMouseDoubleClick
(
p_window
,
vlc_button
);
event
->
accept
();
}
else
...
...
src/video_output/video_output.c
View file @
8bf2942e
...
...
@@ -1335,7 +1335,8 @@ static void ThreadChangeWindowMouse(vout_thread_t *vout,
vout_display_SendEventMouseReleased
(
vd
,
mouse
->
button_mask
);
break
;
case
VOUT_WINDOW_MOUSE_DOUBLE_CLICK
:
vout_display_SendEventMouseDoubleClick
(
vd
);
if
(
mouse
->
button_mask
==
0
)
vout_display_SendEventMouseDoubleClick
(
vd
);
break
;
default:
vlc_assert_unreachable
();
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment