Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup of no longer used OS handles on zoom changes #42

Closed
akoch-yatta opened this issue Mar 28, 2024 · 1 comment
Closed

Cleanup of no longer used OS handles on zoom changes #42

akoch-yatta opened this issue Mar 28, 2024 · 1 comment
Assignees
Labels
Enhancement A Request for an Enhancement of an Existing Feature HiDPI A HiDPI-Related Issue or Feature SWT Issue for SWT

Comments

@akoch-yatta
Copy link

When a zoom changes occurs on a monitor it is possible, that some handles (e.g. fonts created for a specific zoom level) are no longer required and should be cleaned up. Some initial ideas for this:

  • How to identify which zoom levels are still valid and needed? aggregation of the zoom levels of all currently used shell
  • When to do the cleanup? After each DPI change event
  • How to track which ressources could be cleaned up.? There is already org.eclipse.swt.graphicsResourceTracker to identify resource leaks. Perhaps this can be extanded for that behaviour
@akoch-yatta akoch-yatta added SWT Issue for SWT HiDPI A HiDPI-Related Issue or Feature Enhancement A Request for an Enhancement of an Existing Feature labels Mar 28, 2024
@amartya4256 amartya4256 self-assigned this Sep 18, 2024
@amartya4256
Copy link

Merged with eclipse-platform/eclipse.platform.swt#1477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement A Request for an Enhancement of an Existing Feature HiDPI A HiDPI-Related Issue or Feature SWT Issue for SWT
Projects
Status: Done
Development

No branches or pull requests

2 participants