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.h | |
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.h')
-rw-r--r-- | video/out/x11_common.h | 7 |
1 files changed, 7 insertions, 0 deletions
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; |