1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 17:12:36 +00:00
mpv/mpvcore
wm4 ac927e39bf input: don't deliver mouse events if mouse area is not set
This caused the OSC to be always visible at startup on X11:
- EnterNotify event send a mouse event to input.c
- OSC has not completely initialized yet, and no mouse area is set
- mouse event is dispatched to "showhide" OSC section
- OSC becomes visible, regardless of mouse position

Fix this by treating the mouse area as empty if it's not set, instead of
infinite as it was before this commit. This means an input section must
set a mouse area to receive mouse events at all. We also have to change
the default section to receive mouse events with the new behavior.

Also, if MOUSE_MOVE is unmapped (or mapped to something that doesn't
parse), and produces no command, the mouse position wouldn't be updated
(because the mouse position is bound to input commands), so we have to
generate a dummy command in this case.

(This matters only for the OSC, On Screen Controller, which isn't merged
yet, so these changes shouldn't have much effect right now.)
2013-09-08 01:50:14 +02:00
..
input input: don't deliver mouse events if mouse area is not set 2013-09-08 01:50:14 +02:00
timeline core: add a playlist demuxer 2013-08-26 10:09:45 +02:00
asxparser.c core: add a playlist demuxer 2013-08-26 10:09:45 +02:00
asxparser.h
av_common.c
av_common.h
av_log.c
av_log.h
av_opts.c
av_opts.h
bstr.c bstr: make UTF-8 check stricter 2013-08-15 23:40:03 +02:00
bstr.h bstr: add UTF-8 validation and sanitation functions 2013-08-15 23:40:02 +02:00
charset_conv.c sub: don't print detected charset if it's UTF-8 2013-08-15 23:40:04 +02:00
charset_conv.h sub: don't print detected charset if it's UTF-8 2013-08-15 23:40:04 +02:00
codecs.c
codecs.h
command.c mplayer: remove unused mp_add_subtitles() parameter 2013-09-07 20:34:49 +02:00
command.h
cpudetect.c
cpudetect.h
encode_lavc.c
encode_lavc.h
encode.h
m_config.c m_option: rename struct member named "new" 2013-08-19 13:03:08 +02:00
m_config.h
m_option.c audio: make internal audio format 0 an invalid format 2013-08-26 10:09:41 +02:00
m_option.h mplayer: start track IDs from 1 rather than 0 2013-08-21 18:32:42 +02:00
m_property.c
m_property.h
mp_common.c
mp_common.h
mp_core.h mp_core: fix a comment 2013-09-07 20:34:49 +02:00
mp_memory_barrier.h
mp_msg.c
mp_msg.h Some more mp_msg conversions 2013-08-23 23:30:09 +02:00
mp_osd.h
mp_ring.c
mp_ring.h
mp_talloc.h
mplayer.c mplayer: don't auto-load explicitly loaded subtitle files 2013-09-07 20:34:49 +02:00
mpv_global.h
options.c options: fix --volume option range, add some explanations to manpage 2013-09-07 08:54:12 +02:00
options.h video: add unscaled mode with --video-unscaled 2013-09-01 03:46:28 +02:00
parser-cfg.c
parser-cfg.h
parser-mpcmd.c core: add a playlist demuxer 2013-08-26 10:09:45 +02:00
parser-mpcmd.h
path.c path: better check for mp_is_url() 2013-09-04 16:28:02 +02:00
path.h path: add a common mp_is_url() function 2013-09-04 16:15:08 +02:00
playlist_parser.c demux_playlist: port ini reference playlist parser 2013-08-28 23:08:10 +02:00
playlist_parser.h core: add a playlist demuxer 2013-08-26 10:09:45 +02:00
playlist.c path: add a common mp_is_url() function 2013-09-04 16:15:08 +02:00
playlist.h
resolve_quvi9.c
resolve_quvi.c
resolve.h
screenshot.c
screenshot.h
version.c