GTK's `PlatformSupport` class only listens to the `gtk-theme-name` signal to 
detect theme changes. However, it seems that with KDE, color changes are posted 
with a delay after the theme change. Since we only collect platform preferences 
when the theme name was changed, we can miss delayed color changes.

The fix is to also listen to a changed style context. The style context's 
`changed` signal can fire multiple times, so we don't collect the new 
preferences right away, but schedule them to be collected in an idle callback.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - schedule change notification

Changes: https://git.openjdk.org/jfx/pull/2372/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=2372&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8393345
  Stats: 44 lines in 2 files changed: 40 ins; 1 del; 3 mod
  Patch: https://git.openjdk.org/jfx/pull/2372.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/2372/head:pull/2372

PR: https://git.openjdk.org/jfx/pull/2372

Reply via email to