RFR: JDK-8305645: System Tray icons get corrupted when Windows primary monitor changes
Alexey Ivanov
aivanov at openjdk.org
Fri Jun 9 10:43:44 UTC 2023
On Fri, 9 Jun 2023 00:05:09 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:
> I checked the case where both monitors are at same scale and the the primary display is toggled btw the two, WM_DISPLAYCHANGE is received but WmTaskbarCreated() is not called in this scenario and as a result updateNativeImage() is not called as well.
So, we set the flag that the icon needs updating… but because the scale remains unchanged the Taskbar doesn't broadcast its `"TaskbarCreated"` message, therefore the icons aren't updated.
Sounds reasonable.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14368#issuecomment-1584367253
More information about the client-libs-dev
mailing list