Commit 1c8baa6
committed
[win32] fallback for missing DPI change event
This commit adds a fallback mechanism if the OS doesn't send a DPI change
as expected. When the process is started with System DPI awareness and
only the thread is PerMonitorV2 aware, there are some scenarios, when the
OS does not send a DPI change event when a child Shell is positioned and
opened on another monitor as its parent Shell. To work around that limitation
a check is added to Shell::WM_WINDOWPOSCHANGED to trigger a dpi change
event if an unexpected DPI value is detected.1 parent 3cd5b9e commit 1c8baa6
File tree
3 files changed
+45
-29
lines changed- bundles/org.eclipse.swt
- Eclipse SWT Tests/win32/org/eclipse/swt/graphics
- Eclipse SWT/win32/org/eclipse/swt/widgets
3 files changed
+45
-29
lines changedLines changed: 16 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 40 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
55 | 47 | | |
56 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
57 | 52 | | |
58 | 53 | | |
59 | 54 | | |
| |||
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4928 | 4928 | | |
4929 | 4929 | | |
4930 | 4930 | | |
| 4931 | + | |
| 4932 | + | |
| 4933 | + | |
| 4934 | + | |
| 4935 | + | |
| 4936 | + | |
| 4937 | + | |
| 4938 | + | |
| 4939 | + | |
4931 | 4940 | | |
4932 | 4941 | | |
4933 | 4942 | | |
4934 | 4943 | | |
4935 | 4944 | | |
4936 | | - | |
4937 | | - | |
4938 | | - | |
4939 | | - | |
4940 | | - | |
4941 | | - | |
4942 | | - | |
| 4945 | + | |
4943 | 4946 | | |
4944 | 4947 | | |
4945 | | - | |
| 4948 | + | |
4946 | 4949 | | |
4947 | 4950 | | |
4948 | 4951 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2685 | 2685 | | |
2686 | 2686 | | |
2687 | 2687 | | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
| 2704 | + | |
| 2705 | + | |
2688 | 2706 | | |
2689 | 2707 | | |
2690 | 2708 | | |
| |||
0 commit comments