From b784083fb5fada876c94e2f6488e88a2827b9f92 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 2 Oct 2014 18:14:30 +0200 Subject: x11: fix --wid=0 Another fallout resulting from the changes whether or not to wait for mapping the window. In this case, it obviously makes no sense to wait for mapping, because the root window is always mapped. Mapping will never happen, and it would wait forever. Fixes #1139. CC: @mpv-player/stable --- video/out/x11_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/video/out/x11_common.c b/video/out/x11_common.c index d0f86af3aa..140069e289 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -1328,6 +1328,7 @@ void vo_x11_config_vo_window(struct vo *vo, XVisualInfo *vis, int flags, if (opts->WinID >= 0) { if (opts->WinID == 0) { x11->window = x11->rootwin; + x11->pseudo_mapped = true; XSelectInput(x11->display, x11->window, StructureNotifyMask); } else { XSelectInput(x11->display, opts->WinID, StructureNotifyMask); -- cgit v1.2.3