Skip to content

Conversation

@HeikoKlare
Copy link
Contributor

To fix drag and drop behavior on multiple monitors with different zooms when using monitor-specific scaling, a recent change adapted the OS callbacks for drop operations to run with the required DPI awareness (PerMonitorV2) in that case. This change did not consider that without monitor-specific scaling (and particularly when DPI awareness "System" is used), running with that modified DPI awareness is not correct.

This change adapts the drop callback to only adapt the DPI awareness if appropriate (i.e., if monitor-specific scaling is enabled).

Fixes #2394

For reproduction see the original issue. Here is how it looks on 125% secondary monitor (with 100% primary monitor):

Before

dragdrop_nonmonitoraware_issue

After

dragdrop_nonmonitoraware_fix

@HeikoKlare HeikoKlare marked this pull request as ready for review August 8, 2025 14:05
@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2025

Test Results

   546 files  ±0     546 suites  ±0   29m 10s ⏱️ -6s
 4 425 tests ±0   4 408 ✅ ±0   17 💤 ±0  0 ❌ ±0 
16 746 runs  ±0  16 619 ✅ ±0  127 💤 ±0  0 ❌ ±0 

Results for commit 75d4a47. ± Comparison against base commit 812289e.

♻️ This comment has been updated with latest results.

@arunjose696
Copy link
Contributor

Tested the changes, To reproduce the issue as discussed offline had to do the steps in https://eclipse.dev/eclipse/swt/faq.html#win10dpiawareness the issue is fixed with the changes

The change LGTM

…atform#2394

To fix drag and drop behavior on multiple monitors with different zooms
when using monitor-specific scaling, a recent change adapted the OS
callbacks for drop operations to run with the required DPI awareness
(PerMonitorV2) in that case. This change did not consider that without
monitor-specific scaling (and particularly when DPI awareness "System"
is used), running with that modified DPI awareness is not correct.

This change adapts the drop callback to only adapt the DPI awareness if
appropriate (i.e., if monitor-specific scaling is enabled).

Fixes eclipse-platform#2394
@HeikoKlare HeikoKlare merged commit 51d6029 into eclipse-platform:master Aug 11, 2025
17 checks passed
@HeikoKlare HeikoKlare deleted the issue-2394 branch August 11, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants