Skip to content

Conversation

@akoch-yatta
Copy link
Contributor

@akoch-yatta akoch-yatta commented Feb 7, 2025

This commit resets the DPI awareness for the WH_MSGFILTER hook, if called. For performance reasons that is only done, when runAsyncMessages will be triggered, as this can cause UI updates, which would be executed with the wrong DPI awareness context and cause UI glitches.

How to reproduce

Have monitor specific scaling active and at least two monitors.

  1. Open an IDE opened on a primary monitor with a low zoom (e.g. 100%)
  2. Open a Java File in the Editor
  3. Move the IDE to a secondary monitor with a higher zoom (e.g. 200%)
  4. Use the vertical scrollbar to scroll up and down and you should see an effect, e.g. on the LineNumberRuler
Bildschirmaufnahme.2025-02-10.121127.mp4

@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2025

Test Results

   502 files  ±0     502 suites  ±0   10m 27s ⏱️ -30s
 4 334 tests ±0   4 320 ✅ ±0   14 💤 ±0  0 ❌ ±0 
16 575 runs  ±0  16 466 ✅ ±0  109 💤 ±0  0 ❌ ±0 

Results for commit 1d1447f. ± Comparison against base commit 6b20ce2.

♻️ This comment has been updated with latest results.

@akoch-yatta akoch-yatta force-pushed the ensure-thread-dpi-awareness branch from 4e3ac99 to c9dc6e1 Compare February 10, 2025 10:41
@akoch-yatta akoch-yatta marked this pull request as ready for review February 10, 2025 10:44
@akoch-yatta akoch-yatta force-pushed the ensure-thread-dpi-awareness branch from c9dc6e1 to e36c58e Compare February 10, 2025 16:57
@akoch-yatta akoch-yatta force-pushed the ensure-thread-dpi-awareness branch from e36c58e to 918acf9 Compare February 11, 2025 08:16
@akoch-yatta akoch-yatta force-pushed the ensure-thread-dpi-awareness branch 4 times, most recently from 0621463 to 6e894e8 Compare February 11, 2025 13:13
@HeikoKlare HeikoKlare force-pushed the ensure-thread-dpi-awareness branch 2 times, most recently from a2c916f to 7cd0244 Compare February 11, 2025 14:39
@akoch-yatta akoch-yatta force-pushed the ensure-thread-dpi-awareness branch from 7cd0244 to a81956e Compare February 11, 2025 15:26
This commit resets the DPI awareness for the WH_MSGFILTER hook, if called.
For performance reasons that is only done, when runAsyncMessages will be
triggered, as this can cause UI updates, which would be executed with the
wrong DPI awareness context and cause UI glitches.
@HeikoKlare HeikoKlare force-pushed the ensure-thread-dpi-awareness branch from a81956e to 1d1447f Compare February 11, 2025 15:34
@HeikoKlare HeikoKlare merged commit 3d3406d into eclipse-platform:master Feb 11, 2025
14 checks passed
@HeikoKlare HeikoKlare deleted the ensure-thread-dpi-awareness branch February 11, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sidebar images misplaces when scrolling with Scrollbar

2 participants