Commit 864c447
committed
Fix: secondary monitor windows now handle DPI changes at runtime
Secondary 'show on all monitors' windows had no DpiChanged handler, causing
them to become incorrectly sized when monitor DPI changed at runtime (e.g.,
docking/undocking). The cached ctx.DpiScaleX/Y values also went stale,
corrupting cursor hole-punch coordinates.
This adds a DpiChanged event handler to each secondary window that updates
the cached DPI scale, repositions/resizes the window, and rebuilds the
frame geometry.1 parent 6d1a255 commit 864c447
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1147 | 1147 | | |
1148 | 1148 | | |
1149 | 1149 | | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
1150 | 1163 | | |
1151 | 1164 | | |
1152 | 1165 | | |
| |||
0 commit comments