summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahodesuka <ahoka@lavabit.com>2013-12-27 22:14:49 -0600
committerwm4 <wm4@nowhere>2013-12-28 15:07:01 +0100
commit62be13b019ca111ba076ae18c9cdd9f9f57ac2b1 (patch)
treecbedd00f83a5e78b772380ea8887d246bab68d70
parent4b695e7972d41f4615beb4c515dceb2566bc7470 (diff)
downloadmpv-62be13b019ca111ba076ae18c9cdd9f9f57ac2b1.tar.bz2
mpv-62be13b019ca111ba076ae18c9cdd9f9f57ac2b1.tar.xz
vo/x11_common: do not select motion events when --no-mouse-movements is set
-rw-r--r--video/out/x11_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index ce97ddda54..9b5d5cb929 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -1614,7 +1614,7 @@ static void vo_x11_selectinput_witherr(struct vo *vo,
long event_mask)
{
if (!vo->opts->enable_mouse_movements)
- event_mask &= ~(ButtonPressMask | ButtonReleaseMask);
+ event_mask &= ~(PointerMotionMask | ButtonPressMask | ButtonReleaseMask);
XSelectInput(display, w, NoEventMask);