https://bugs.winehq.org/show_bug.cgi?id=48732
--- Comment #19 from Gabriel Ivăncescu gabrielopcode@gmail.com ---
From a glance, yeah, I think so as well. Not sure why that flickering happens.
But I honestly doubt SetParent itself is wrong, it might be a Window Manager thing or bug (sometimes new popup windows also get positioned wrongly, not only from Wine, either). I use Compiz with XFCE.
Still this patch would help with that, so I think it's worth it, since it's less intrusive and more correct, anyway. Just for curiosity, do you find the testcase I wrote goes too much into implementation detail? Or the actual change itself? I mainly added it so it doesn't regress later if someone wonders why it's done the way it is.