diff options
author | Rudolf Polzer <divverent@xonotic.org> | 2013-01-02 12:55:52 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-13 22:36:42 +0100 |
commit | 4044754d24c677ed82016b5b8f3011686d7d2ff6 (patch) | |
tree | 14c367b7c2e79c16ef7bfe8a14299e36cc7dd5df /video/out/x11_common.c | |
parent | c15cc15415d76e1a74b3f4a3087b9c208195cc2a (diff) | |
download | mpv-4044754d24c677ed82016b5b8f3011686d7d2ff6.tar.bz2 mpv-4044754d24c677ed82016b5b8f3011686d7d2ff6.tar.xz |
vo_x11, vo_xv: XShmCompletion event support
This fixes OSD flicker with vo_xv at high frame rates.
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r-- | video/out/x11_common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 05fae825fc..7986817f68 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -903,6 +903,11 @@ int vo_x11_check_events(struct vo *vo) Event.xclient.data.l[0] == x11->XAWM_DELETE_WINDOW) mplayer_put_key(vo->key_fifo, KEY_CLOSE_WIN); break; + default: + if (Event.type == x11->ShmCompletionEvent) + if (x11->ShmCompletionWaitCount > 0) + x11->ShmCompletionWaitCount--; + break; } } return ret; |