summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-07-25 11:28:06 +0200
committerwm4 <wm4@nowhere>2016-07-25 11:28:06 +0200
commitcb4342dda4389abb2d5c81f7bc660675199a313d (patch)
treebe105cf54458d2b23b5d6fa7fecd1f2d5c63ae8f /video/out/x11_common.h
parentebe798a333fe547b77a5c0169a7fd8aadf8b8beb (diff)
downloadmpv-cb4342dda4389abb2d5c81f7bc660675199a313d.tar.bz2
mpv-cb4342dda4389abb2d5c81f7bc660675199a313d.tar.xz
x11: do not accidentally discard event flags
It seems vo_x11_check_events() was supposed to return the currently flagged events and reset them. But there are many places where vo_x11_check_events() is called without checking its return value. This could lead to forgotten events. Change the code such that they can't get lost.
Diffstat (limited to 'video/out/x11_common.h')
-rw-r--r--video/out/x11_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h
index d861b32d1c..213d517205 100644
--- a/video/out/x11_common.h
+++ b/video/out/x11_common.h
@@ -128,7 +128,7 @@ struct vo_x11_state {
int vo_x11_init(struct vo *vo);
void vo_x11_uninit(struct vo *vo);
-int vo_x11_check_events(struct vo *vo);
+void vo_x11_check_events(struct vo *vo);
bool vo_x11_screen_is_composited(struct vo *vo);
bool vo_x11_create_vo_window(struct vo *vo, XVisualInfo *vis,
const char *classname);