Files
l0ng-ai d996b77644 fix(notify): reveal the pane from toasts clicked in notification history (#1189)
Windows only reports a click on a toast that has left the screen through
COM: the shell activates the ToastActivatorCLSID named on the shortcut
that carries the AUMID. tty7 had no such class, so clicks from Action
Center did nothing.

- Stamp a fixed ToastActivatorCLSID on the Start Menu shortcut (runtime
  and installer); a shortcut lacking it is rewritten.
- Register the class per-user as a LocalServer32 (never from a cargo
  build directory) and as a running class object at GUI startup.
- Implement INotificationActivationCallback; the toast's launch string
  carries the pid-checked pane identifier, so a click on a toast from an
  earlier process only brings the window forward.
- Queue tray actions that arrive before the dispatch loop exists, which
  is the cold-start case when COM launches tty7 to deliver the click.
- Deduplicate a popup click that arrives through both COM and the
  in-process Activated event.
- The uninstaller removes the CLSID registration.

Fixes #1179
2026-10-16 12:23:06 +08:00
..