x11: always wait for mapped when using --wid

Might help with embedding with mozplugger. I can't confirm whether it
fixes the issue.

See #1090.
This commit is contained in:
wm4 2014-09-29 18:05:52 +02:00
parent 50e131b43e
commit 053196de84
1 changed files with 3 additions and 2 deletions

View File

@ -944,9 +944,10 @@ int vo_x11_check_events(struct vo *vo)
break; break;
case PropertyNotify: case PropertyNotify:
if (Event.xproperty.atom == x11->atom_frame_exts) { if (Event.xproperty.atom == x11->atom_frame_exts) {
if (!x11->pseudo_mapped) if (!x11->pseudo_mapped && vo->opts->WinID < 0) {
MP_VERBOSE(x11, "not waiting for MapNotify\n"); MP_VERBOSE(x11, "not waiting for MapNotify\n");
x11->pseudo_mapped = true; x11->pseudo_mapped = true;
}
} }
break; break;
default: default: