mirror of https://github.com/mpv-player/mpv
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:
parent
50e131b43e
commit
053196de84
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue