summaryrefslogtreecommitdiffstats
path: root/mpvcore/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-08-30 02:24:14 +0200
committerwm4 <wm4@nowhere>2013-09-01 20:17:51 +0200
commit42fa7cbbf9ffc9682984f81dbafc39f4c2fbf68e (patch)
treed15bed10e3e0844ef9aa6c314747390db19f7fce /mpvcore/options.c
parent61ba8107525308b17e9c4bfdee976509116161a1 (diff)
downloadmpv-42fa7cbbf9ffc9682984f81dbafc39f4c2fbf68e.tar.bz2
mpv-42fa7cbbf9ffc9682984f81dbafc39f4c2fbf68e.tar.xz
input: stay in current input section if mouse button is down
Normally, moving the mouse outside of the mouse area of an input section will send mouse events somewhere else (because input section mouse areas are similar to windows/widgets in real GUI toolkits). This was done even if a mouse button was held down. This is quite different from how GUI toolkits behave. Change the code so that if a mouse button is down, the mouse area of the current input section can't be left. Releasing the mouse button (while the mouse pointer is outside of the mouse area) will actually leave the mouse area. As a side-effect, this commit also tests more often whether the current mouse input section is valid. This is needed to make releasing a mouse button trigger the mouse input section change.
Diffstat (limited to 'mpvcore/options.c')
0 files changed, 0 insertions, 0 deletions