Commit 7ec82a2
Fix Explorer: move only targeted window, not all Explorer windows
Explorer uses a single process for all File Explorer windows, so the
sibling-grouping logic would grab every open Explorer window and try
to move them all. Some of those windows (on other desktops or shell
helper windows) fail with TYPE_E_ELEMENTNOTFOUND, causing a crash.
For explorer.exe, skip grouping and just move the one targeted window.
Also make secondary window move failures non-fatal for other apps.
Fixes #8
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent daa7a58 commit 7ec82a2
File tree
3 files changed
+27
-6
lines changed- src/MaximizeToVirtualDesktop
3 files changed
+27
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
82 | 96 | | |
83 | 97 | | |
84 | 98 | | |
| |||
147 | 161 | | |
148 | 162 | | |
149 | 163 | | |
150 | | - | |
| 164 | + | |
151 | 165 | | |
152 | | - | |
153 | | - | |
| 166 | + | |
| 167 | + | |
154 | 168 | | |
155 | 169 | | |
156 | 170 | | |
| |||
170 | 184 | | |
171 | 185 | | |
172 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
173 | 192 | | |
174 | 193 | | |
175 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
0 commit comments