summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r--video/out/x11_common.c5
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;