<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br><div><blockquote type="cite"><div>On Nov 12, 2025, at 3:33 PM, Michael Strauß <michaelstrau2@gmail.com> wrote:</div><div><div><br>I think we can probably get there by using a WS_EX_LAYERED window like<br>we do for StageStyle.TRANSPARENT, if we accept the significant<br>performance impact.</div></div></blockquote><div><br></div><div>I tried that. Once you call UpdateLayeredWindow/UpdateLayeredWindowIndirect the OS stops painting and you become responsible for all of the window’s pixels including the title bar and frame areas.</div><div><br></div><blockquote type="cite"><div><div> With DirectComposition, we can directly interface<br>with the DWM composition engine and skip the GDI window surface<br>completely. This requires a fair bit of integration with JavaFX that<br>goes beyond changes in the Glass toolkit. However, it doesn't require<br>a D3D11 rendering pipeline. It works with the existing D3D9 pipeline<br>by having D3D9 render into a shared off-screen surface, which is then<br>accessed by DirectComposition with ID3D11Device::OpenSharedResource.<br></div></div></blockquote><div><br></div>The Mac Glass platform code builds the surface (CALayer) and passes that to the rendering pipeline instead of the NSView. Is it possible for Windows Glass to do something similar? Seems odd to be passing an HWND into a rendering pipeline.</div><div><br></div><div>With that said, per-pixel window transparency is not a priority. Like I said, lots of issues related to hit testing and drop shadow generation.</div><div><br><blockquote type="cite"><div><div>In the end, there doesn't seem to be much common ground between the<br>various OS platforms for any reasonably powerful cross-platform API.<br></div></div></blockquote><div><br></div>Are you talking about an API for creating custom materials? I don’t think that’s possible on macOS. To blend the window contents against the desktop background in real-time NSVisualEffectView uses a couple of undocumented CoreAnimation layers. In effect NSVisualEffectView is the only component that can do this and it’s constrained to the built-in materials.</div><div><br><blockquote type="cite"><div><div>I've never heard of any previous effort, and it couldn't have been me<br>beacuse I haven't talked about this up util now. I'd be interested to<br>learn about other attempts at solving this.<br></div></div></blockquote></div><br><div>Found the e-mail. You mentioned this project in passing on a different thread. <a href="https://marc.info/?l=openjdk-openjfx-dev&m=167536435011246&w=2">https://marc.info/?l=openjdk-openjfx-dev&m=167536435011246</a></div><div><br></div><div>Martin</div></body></html>