Commit Graph
11 Commits
Author SHA1 Message Date
fanlusky b159d8c9ab Update local path. Optimize audio interruption. 2026-08-23 23:37:00 +08:00
fanlusky c029fb7222 fix(webview2): prevent TOPMOST from blocking controller creation in uiAccess process
In a uiAccess=true process, a WS_EX_TOPMOST parent window causes
WebView2's internal cross-process SetParent to be rejected by UIPI,
returning E_INVALIDARG (0x80070057) from CreateCoreWebView2Controller.

This was triggered when the watchdog restarted the server while the IME
was already active: the floating toolbar showed early, which mistakenly
raised the DWM-cloaked (warmup) menu host to TOPMOST before its
controller existed. Manual launches never hit this because the IME was
inactive at startup time.

Changes:
- Gate RaiseTrayMenuAboveSmallWindows on menu controller existence so
  a cloaked warmup host is never prematurely pinned TOPMOST.
- Strip WS_EX_TOPMOST from any host window before requesting its
  controller; the lazy-topmost gate re-pins all three once ready.
- Serialize controller creation (one in-flight at a time) to avoid
  E_INVALIDARG from concurrent CreateCoreWebView2Controller calls on
  the same environment.
- Rotate past a persistently failing host so it cannot starve siblings.
- Harden LOCALAPPDATA resolution with SHGetKnownFolderPath fallback.
- Increase watchdog restart delay to 2s for user-data-folder lock drain.
- Add diagnostic logging (traymenu-diag.log) for WebView2 init states.
2026-07-30 03:08:42 +08:00
fanlumaster 28d11c0d9f [config]: Read toml config file from appdata location 2026-01-30 12:27:23 +08:00
fanlumaster 5b19b102b3 [Render]: Replace sciter with direct2d and directwrite, now only support basic layout(hard code) 2025-06-16 17:04:05 +08:00
fanlumaster 976e17864a [env]: Make it more generic 2025-05-31 06:44:30 +08:00
fanlumaster 886977d308 [dev]: webview2 appdata path 2025-05-14 16:30:09 +08:00
fanlumaster d83644002b [fix]: Telegram workaround 2025-05-06 07:17:04 +08:00
fanlumaster c3174d23cd [feat]: VK_SPACE to commit first candidate 2025-04-23 03:22:07 +08:00
fanlumaster 1f7bb99c5d [chore]: add some utils 2025-04-16 00:47:10 +08:00
fanlumaster 2dd6a19ffc set up spdlog 2025-03-26 17:34:43 +08:00
fanlumaster efa57fe37f refactor 2025-03-26 16:36:21 +08:00