Commit 8a135d1
committed
Use DwmGetWindowAttribute for Shell#getLocation to avoid shadow margins
GetWindowRect includes invisible shadow borders on Windows 10/11,
causing
Shell#getLocation to return coordinates offset by ~9px from the visible
frame. Replaced with DwmGetWindowAttribute(DWMWA_EXTENDED_FRAME_BOUNDS)
to
report the true window bounds in screen space, with GetWindowRect as a
fallback if DWM is unavailable.1 parent a641cdb commit 8a135d1
File tree
4 files changed
+29
-9
lines changed- bundles/org.eclipse.swt
- Eclipse SWT PI/win32
- library
- org/eclipse/swt/internal/win32
- Eclipse SWT/win32/org/eclipse/swt/widgets
4 files changed
+29
-9
lines changedLines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
| |||
1513 | 1510 | | |
1514 | 1511 | | |
1515 | 1512 | | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
1516 | 1529 | | |
1517 | 1530 | | |
1518 | 1531 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
| |||
133 | 130 | | |
134 | 131 | | |
135 | 132 | | |
| 133 | + | |
136 | 134 | | |
137 | 135 | | |
138 | 136 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1862 | 1862 | | |
1863 | 1863 | | |
1864 | 1864 | | |
| 1865 | + | |
1865 | 1866 | | |
1866 | 1867 | | |
1867 | 1868 | | |
| |||
3022 | 3023 | | |
3023 | 3024 | | |
3024 | 3025 | | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
| 3029 | + | |
3025 | 3030 | | |
3026 | 3031 | | |
3027 | 3032 | | |
| |||
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
1021 | 1025 | | |
1022 | 1026 | | |
1023 | 1027 | | |
| |||
0 commit comments