Commit 51d6029
committed
[Win32] Fix drag and drop without monitor-specific scaling #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 #23941 parent 812289e commit 51d6029
File tree
3 files changed
+14
-18
lines changed- bundles/org.eclipse.swt
- Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd
- Eclipse SWT/win32/org/eclipse/swt
- internal
- widgets
3 files changed
+14
-18
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
72 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
Lines changed: 5 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1461 | 1461 | | |
1462 | 1462 | | |
1463 | 1463 | | |
1464 | | - | |
| 1464 | + | |
1465 | 1465 | | |
1466 | 1466 | | |
1467 | 1467 | | |
| |||
1487 | 1487 | | |
1488 | 1488 | | |
1489 | 1489 | | |
| 1490 | + | |
1490 | 1491 | | |
1491 | 1492 | | |
1492 | 1493 | | |
| |||
1495 | 1496 | | |
1496 | 1497 | | |
1497 | 1498 | | |
1498 | | - | |
| 1499 | + | |
1499 | 1500 | | |
1500 | 1501 | | |
1501 | 1502 | | |
| |||
3478 | 3479 | | |
3479 | 3480 | | |
3480 | 3481 | | |
3481 | | - | |
| 3482 | + | |
3482 | 3483 | | |
3483 | 3484 | | |
3484 | 3485 | | |
| 3486 | + | |
3485 | 3487 | | |
3486 | 3488 | | |
3487 | 3489 | | |
| |||
5414 | 5416 | | |
5415 | 5417 | | |
5416 | 5418 | | |
5417 | | - | |
5418 | | - | |
5419 | | - | |
5420 | | - | |
5421 | | - | |
5422 | | - | |
5423 | | - | |
5424 | | - | |
5425 | | - | |
5426 | | - | |
5427 | 5419 | | |
0 commit comments