[vlc-devel] [PATCH 00/11] Mouse Hiding
Steve Lhomme
robux4 at videolabs.io
Tue Aug 8 15:22:20 CEST 2017
This set of patches adds support for a flag in VOUT_DISPLAY_HIDE_MOUSE to tell
if we want to show or hide the cursor. This is necessary when the vout has its
own window with mouse handling and associated cursor. The cursor handled by the
GUI will have no effect so it must be told when the core wants to show/hide the
cursor.
When a vout has its own window with mouse handling, the only way for the core to
know when to show or hide the cursor is by getting the mouse events from these
vout. This is done either with vout_display_SendEventMouseMoved() or
vout_display_SendEventMouseState().
These patches fix #17819 by making sure the Windows event handler receives
VOUT_DISPLAY_HIDE_MOUSE. And with a fix to hide the cursor when requested that
way. The internal Windows vout to handle the hiding/showing of the cursor needs
to be removed.
Support for the new way of handling VOUT_DISPLAY_HIDE_MOUSE has been added to
the OS X vouts but it's likely this code should be removed, see #18658.
Steve Lhomme (11):
vout:win32: fix hiding the cursor
display: tell whether VOUT_DISPLAY_HIDE_MOUSE should hide/show the
mouse
vout:win32: handle the bool value in VOUT_DISPLAY_HIDE_MOUSE
caca: handle the flag in VOUT_DISPLAY_HIDE_MOUSE
aa: handle the flag in VOUT_DISPLAY_HIDE_MOUSE
kva: handle the flag in VOUT_DISPLAY_HIDE_MOUSE
macosx: handle the flag in VOUT_DISPLAY_HIDE_MOUSE
caopengllayer: handle the flag in VOUT_DISPLAY_HIDE_MOUSE
vout:win32: remove unneeded internal cursor show/hide mechanism
display: always set VOUT_DISPLAY_HIDE_MOUSE if needs_hide_mouse is set
display: add more documentation for display_info.handle_mouse_hide
include/vlc_vout_display.h | 6 ++++--
modules/video_output/aa.c | 5 ++++-
modules/video_output/caca.c | 6 ++++--
modules/video_output/caopengllayer.m | 5 ++++-
modules/video_output/kva.c | 7 ++++---
modules/video_output/macosx.m | 5 ++++-
modules/video_output/win32/common.c | 6 ++++--
modules/video_output/win32/events.c | 32 ++++----------------------------
modules/video_output/win32/events.h | 2 +-
src/video_output/display.c | 21 ++++++++++++---------
10 files changed, 45 insertions(+), 50 deletions(-)
--
2.12.1
More information about the vlc-devel
mailing list