summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-05-16 13:45:16 +0200
committerwm4 <wm4@nowhere>2020-05-16 13:45:16 +0200
commit152b0e2a8cb0f3c93de163a39e9c665cb515923f (patch)
tree741e84d645ec23372d6946920203508ed37f0ed3 /etc
parent09b68648f1b2a75dfc62efb3c0889899ec0f079f (diff)
downloadmpv-152b0e2a8cb0f3c93de163a39e9c665cb515923f.tar.bz2
mpv-152b0e2a8cb0f3c93de163a39e9c665cb515923f.tar.xz
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.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions