diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2021-06-20 17:27:30 +0300 |
---|---|---|
committer | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2021-06-20 17:37:47 +0300 |
commit | 48f3a267460f8ca2355a8168e0694e7251b2f5d3 (patch) | |
tree | ea7b410447b9808156ce520b26fd0e3a4ae4d8ef /sub/dec_sub.c | |
parent | 89efe820a8f1938246f6a619e027fb3067d661e9 (diff) | |
download | mpv-48f3a267460f8ca2355a8168e0694e7251b2f5d3.tar.bz2 mpv-48f3a267460f8ca2355a8168e0694e7251b2f5d3.tar.xz |
osc: ensure tick after any mouse-event
Previously tick() was ensured unconditionally only after mouse-move,
but there are other mouse-events which need re-rendering (tick), like
mouse-down (icons may get grayed-out) or mouse-up (icons may change).
For instance: mpv --pause --myclip.mkv
then move the mouse over the volume/mute OSC button, then - without
moving the mouse - press and release the left mouse button.
The osc was not re-rendered because it's paused and the mouse didn't
move, so the volume icon didn't get grayed-out when held down, and the
icon doesn't change on mouse-up (to reflect the new mute state).
Now both these changes are rendered correctly.
Diffstat (limited to 'sub/dec_sub.c')
0 files changed, 0 insertions, 0 deletions