Repository navigation
Commit 94c3e62
Report whether the foreground grant was actually made
AllowFor discarded the Win32 result, which made two very different outcomes look
identical: the grant being refused because THIS process does not hold the foreground
right (normal for a script-launched process, as opposed to a shell double-click), and
a grant that succeeded while the raise did nothing. Both present as a window that
flashed its taskbar button and stayed put, so neither could be diagnosed.
It now returns the result and the hand-off logs a refusal at Debug. Still never
fatal: the document is delivered either way, and the fallback is the taskbar flash
this exists to improve on.
This paid for itself immediately. With it, a real two-instance test could show the
grant succeeding, which is what isolated the actual defect to the consumer side:
SDL_RaiseWindow moves focus without un-minimising, so a minimised window became the
foreground window while parked off-screen at -21333,-21333. Focus going somewhere the
user cannot see is worse than not raising at all.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TY5kFz4Qxox1aAHxPKf2ek1 parent 02c6920 commit 94c3e62
2 files changed
Lines changed: 32 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
30 | 39 | | |
31 | | - | |
| 40 | + | |
32 | 41 | | |
33 | | - | |
| 42 | + | |
34 | 43 | | |
35 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
36 | 50 | | |
37 | 51 | | |
38 | 52 | | |
39 | 53 | | |
40 | | - | |
| 54 | + | |
41 | 55 | | |
42 | 56 | | |
43 | 57 | | |
44 | 58 | | |
45 | 59 | | |
| 60 | + | |
46 | 61 | | |
47 | 62 | | |
48 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
199 | 208 | | |
200 | 209 | | |
201 | 210 | | |
| |||
0 commit comments