1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 16:33:02 +00:00
mpv/player
wm4 152b0e2a8c osc: fix hovering timestamp sticking around when moving mouse away
The OSC calls this "tooltip" (and although a general mechanism, there's
only one instance using it). One particular problem was that with the
default OSC layout, moving the mouse down and out of the window, the
tooltip stuck around, because the returned mouse position was the last
pixel row in the window, which still overlaps with the seek bar.

Instead of introducing mouse_in_window, you could check last_mouse_X for
nil, but I think this is clearer.

This returns (-1, -1) to the caller if the mouse is outside. Kind of
random, but works.
2020-05-16 13:45:16 +02:00
..
javascript js: mp.set_osd_ass: ignore identical inputs (match ccbb8b1c) 2020-05-10 21:20:28 +03:00
lua osc: fix hovering timestamp sticking around when moving mouse away 2020-05-16 13:45:16 +02:00
audio.c f_decoder_wrapper: replace most public fields with setters/getters 2020-02-29 01:23:20 +01:00
client.c client API: report IDs of inserted playlist entries on loading playlist 2020-03-27 00:57:11 +01:00
client.h scripting: remove race condition when toggling internal scripts 2020-03-26 23:59:44 +01:00
command.c command: add input-key-list property 2020-05-14 22:22:33 +02:00
command.h command: use client IDs for hooks 2020-03-26 23:40:25 +01:00
configfiles.c player: fix minor coding style issue 2020-01-26 14:29:48 +01:00
core.h player: remove duplicated track option setter code 2020-04-15 17:10:01 +02:00
external_files.c player: make external subtitle auto-loading stricter 2020-05-09 23:31:33 +02:00
external_files.h player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
javascript.c js: make wait_event autofree 2020-03-22 00:53:30 +02:00
loadfile.c player: remove duplicated track option setter code 2020-04-15 17:10:01 +02:00
lua.c lua: do not use Lua filesystem functions for loading scripts 2020-05-10 17:00:07 +02:00
main.c player, ta: remove use of an old macro 2020-04-13 15:56:27 +02:00
misc.c player: slightly improve use of secondary track selection limits 2020-04-15 17:04:00 +02:00
osd.c f_decoder_wrapper: replace most public fields with setters/getters 2020-02-29 01:23:20 +01:00
playloop.c player: round position percentage to the nearest integer 2020-05-01 20:48:16 +02:00
screenshot.c screenshot: fix typo in comment 2020-02-07 13:42:42 +01:00
screenshot.h player: make screenshot each-frame mode more accurate 2020-02-07 13:32:21 +01:00
scripting.c scripting: make socket FD number for subprocesses dynamic 2020-05-15 16:37:41 +02:00
sub.c command: add property to return text subtitles in ASS 2020-05-14 22:14:49 +02:00
video.c video: remove another redundant wakeup 2020-04-10 01:33:38 +02:00