diff --git a/video/out/x11_common.c b/video/out/x11_common.c index a9dc5f4aa5..b7e57a730a 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -656,11 +656,6 @@ void vo_x11_uninit(struct vo *vo) XSelectInput(x11->display, x11->window, StructureNotifyMask); XDestroyWindow(x11->display, x11->window); - XEvent xev; - do { - XNextEvent(x11->display, &xev); - } while (xev.type != DestroyNotify || - xev.xdestroywindow.event != x11->window); } if (x11->xic) XDestroyIC(x11->xic);