On Fri Jun 2 16:24:35 2023 +0000, Rémi Bernon wrote:
Yeah I think it's best to wait for accelerated surface before introducing them, and then only do it on a as-needed basis. Fwiw there can sometimes be a huge number of child Win32 windows created, none of which will need any acceleration, and you probably don't want to create host objects needlessly.
Also note that, from the winex11 experience at least, it looks like accelerated surfaces should not be exactly a one-to-one match between HWND and host windows. I don't know how this will work in Wayland, but on X11 we ended up (not upstream but in Proton) with multiple client windows for a single HWND, because of how Windows surfaces can work.