diff options
author | wm4 <wm4@nowhere> | 2013-06-19 18:45:02 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-29 22:58:13 +0200 |
commit | e0d3dc3857797c886b3d53c13d153492531a4bcc (patch) | |
tree | c1b5d4c0268d16558fc4bf5522a22e78b204b6df /core/input/input.c | |
parent | 831a7cf3eea1015a76f4accba4f4d237a5336f7b (diff) | |
download | mpv-e0d3dc3857797c886b3d53c13d153492531a4bcc.tar.bz2 mpv-e0d3dc3857797c886b3d53c13d153492531a4bcc.tar.xz |
mplayer: don't hide mouse cursor if mouse is inside mouse area
Diffstat (limited to 'core/input/input.c')
-rw-r--r-- | core/input/input.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/input/input.c b/core/input/input.c index ba35efd0e6..038d6507bb 100644 --- a/core/input/input.c +++ b/core/input/input.c @@ -2169,5 +2169,9 @@ int mp_input_check_interrupt(struct input_ctx *ictx, int time) unsigned int mp_input_get_mouse_event_counter(struct input_ctx *ictx) { + // Make the frontend always display the mouse cursor (as long as it's not + // forced invisible) if mouse input is desired. + if (mp_input_test_mouse_active(ictx, ictx->mouse_x, ictx->mouse_y)) + ictx->mouse_event_counter++; return ictx->mouse_event_counter; } |