diff options
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3480,9 +3480,11 @@ static void event_loop(VideoState *cur_stream) } cursor_last_shown = av_gettime_relative(); if (event.type == SDL_MOUSEBUTTONDOWN) { + if (event.button.button != SDL_BUTTON_RIGHT) + break; x = event.button.x; } else { - if (event.motion.state != SDL_PRESSED) + if (!(event.motion.state & SDL_BUTTON_RMASK)) break; x = event.motion.x; } |