On Thu, 5 Jun 2025 00:50:30 GMT, Michael Strauß <mstra...@openjdk.org> wrote:
>> Implementation of >> [`StageStyle.EXTENDED`](https://gist.github.com/mstr2/0befc541ee7297b6db2865cc5e4dbd09). > > Michael Strauß has updated the pull request incrementally with one additional > commit since the last revision: > > rename WindowManager to DesktopEnvironment > I am noticing some strange artifacts, whereby the window icons are partially > or completely disappearing, or (more often) their styling is not changing on > hover. > > I don't have a screenshot of all three disappearing, but it has happened. > > I am not doing anything unusual, so this is odd. I know such a "bug" report > without a reproducible example, is a pain. But this is just an FYI, that > _something_ is happening. No other styling is affected, just these windows > icons. I will post more when I know more. > > Here, my mouse was hovering over X (not in screenshot), note it isn't red: >  > > Here, one icon has disappeared: >  > > Here, two have: >  > > What I appear to be able to reproduce the easiest, is where the three icons > are still visible, but styling does not change on hover. All I need to do is > click around my app a little bit, loading a few different (unrelated) views, > and this "bug" occurs. > > UPDATE: I think this issue is closely related to [#1605 > (comment)](https://github.com/openjdk/jfx/pull/1605#issuecomment-2849128835) This is a frustrating "issue" in the sense that it's very much timing-related and even window-size specific, as to whether or not it occurs (i.e., the icons disappear). Ultimately, I found that the application in the screenshot was slightly mis-using this method in a ControlsFx's class: https://github.com/controlsfx/controlsfx/blob/4f1da99e4ebc15d8fc8cb44bf5476d39068b2eea/controlsfx/src/main/java/impl/org/controlsfx/ImplUtils.java#L51 ... long story short is that it was trying to, in some rare circumstances, erroneously wrap a DecorationPane in a DecorationPane (which was pointless, there's no reason to do that). A DecorationPane is something ControlsFx wraps root nodes in (usually without the developer knowing) in order to provide some of its functionality. This double wrapping bug, which was seemingly harmless until now, for whatever reason, was causing the display issues on the window icons (and oddly only when the window was a certain size...). When fixed, I can no longer reproduce the disappearing window icons issue. So I don't know if there's a bug worth investigating here or not, these comments are mainly intended as a source of information to others. ------------- PR Comment: https://git.openjdk.org/jfx/pull/1605#issuecomment-2954114081