From 4044754d24c677ed82016b5b8f3011686d7d2ff6 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 2 Jan 2013 12:55:52 +0100 Subject: vo_x11, vo_xv: XShmCompletion event support This fixes OSD flicker with vo_xv at high frame rates. --- video/out/x11_common.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'video/out/x11_common.h') diff --git a/video/out/x11_common.h b/video/out/x11_common.h index a968724842..dc5e94edc7 100644 --- a/video/out/x11_common.h +++ b/video/out/x11_common.h @@ -80,6 +80,13 @@ struct vo_x11_state { unsigned int oldfuncs; XComposeStatus compose_status; + /* XShm stuff */ + int ShmCompletionEvent; + /* Number of outstanding XShmPutImage requests */ + /* Decremented when ShmCompletionEvent is received */ + /* Increment it before XShmPutImage */ + int ShmCompletionWaitCount; + Atom XA_NET_SUPPORTED; Atom XA_NET_WM_STATE; Atom XA_NET_WM_STATE_FULLSCREEN; -- cgit v1.2.3