Skip to content

[Win32] Wrong icons in view toolbars in multi-monitor-zoom setups (sporadic) #3385

@HeikoKlare

Description

@HeikoKlare

Describe the bug

When using multi-monitor setups with the different monitors having different zooms, it sporadically happens that view toolbars show unexpected icons.

Here are two example:
Image
Image

Sometimes you can also see that just when hovering the shown images are different.

To Reproduce

The behavior is not easy reproduce in a deterministic way, but I see it happen with the following flow very often.

Preparation:

  • Set up the system to have a 100% primary monitor and 125/150% (other zooms not tested yet) secondary monitor
  • Prepare a (runtime) Eclipse instance:
    • shared area contains a Java editor and a Manifest editor, the Java editor being the active one
    • one view stack contains the outline
    • place the application window on the primary monitor

So you start with something like this:

Image

Workflow

Then do the following:

  1. Restart the runtime Eclipse instance
  2. Move the window to the secondary monitor
  3. Switch to the Manifest editor (the Outline view and its toolbar items change)
  4. Move the window back to the primary monitor
  5. Switch back to the Java editor
  6. Move the window to the secondary monitor again

You end up with this (see the wrong icons in the outline view toolbar):
Image

Expected behavior

Proper toolbar icons to be shown independent from the zoom setup.

Environment

  1. Select the platform(s) on which the behavior is seen:
    • All OS
    • Windows
    • Linux
    • macOS
  1. Additional OS info (e.g. OS version, Linux Desktop, etc)
    Windows 11 22631

  2. JRE/JDK version
    Temurin 25.02.2.10

Version since
Probably since 2026-03 caused by this PR:

Workaround (or) Additional context
As a workaround, one can enforce a refresh of the view toolbar by changing to another view in the part stack or by switching to another editor that leads to a different view toolbar (in case of the outline view).

I have found this issue together with a potential solution when working on another issue and will provide a PR that should fix the issue (mostly by reverting the mentioned PR) soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HiDPIIssues related to High resolution monitorsWindowsHappens on Windows OS

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions