vi-eclipse / Eclipse-Platform

Umbrella repository for managing a backlog of features/issues related to the Eclipse Platform
2 stars 0 forks source link

Destroy unused handles on WM_DISPLAYCHANGE #128

Open fedejeanne opened 1 month ago

fedejeanne commented 1 month ago

Issue

Currently, the OS handles for resources in an unnecessary zoom level are being removed when the OS-event WM_DPICHANGED is triggered (see https://github.com/eclipse-platform/eclipse.platform.swt/pull/1477). This poses a problem because this event is only triggered in 2 situations:

  1. The window is dragged to a monitor with different scaling
  2. The monitor where the window is located changes its scaling

But there is one scenario when this event is not triggered, that is:

  1. A monitor that does not contain the window changes its scaling.

Goal

Do a PoC and see if it's possible to react to another event and trigger the cleanup: WM_DISPLAYCHANGE

fedejeanne commented 1 month ago

@amartya4256 fyi