RFR: 8357067: Platform preference change can emit multiple notifications [v2]

Michael Strauß mstrauss at openjdk.org
Thu May 15 21:20:58 UTC 2025


On Thu, 15 May 2025 20:43:00 GMT, John Hendrikx <jhendrikx at openjdk.org> wrote:

>> I don't think that there's a perfect way to solve this. Yes, this can theoretically happen, and then you'll see a visual glitch. I can imagine that this might also be the reason why Windows shows a full-screen popup when you switch to and from a high-contrast theme: to hide glitchy applications during the transition period.
>
> Alright, just making sure, as you mentioned in another thread seeing inconsistent transient states isn't an acceptable trade-off.  They can still occur, and so users can't rely on them.  In that respect the situation is similar to before this change, other than it being less likely to occur (and perhaps never or rarely in practice).

Yes, I think having inconsistent transient states is not an acceptable trade-off, that's why I think reducing them by 99,9% (from guaranteed to happen, to almost hever happening) is sensible. If it does happen anyway, it shouldn't crash your application but show up as a visual glitch (I mean, we're talking about colors). In that sense, you can "rely" on it.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1810#discussion_r2091974093


More information about the openjfx-dev mailing list