Commit Graph
18 Commits
Author SHA1 Message Date
fanlusky 0e19f06da2 Fix the issue where the candidate window is truncated. 2026-08-23 18:58:35 +08:00
fanlusky ac8d47ef09 Change the candidate window to a stable transparent host window occupying about 1/4 of the screen (updating with the cursor monitor/DPI), with content wrapping according to the host width and scrolling according to the host height, and fix the issues of high-DPI edge cropping and inconsistency between measurement and CSS limits. 2026-08-08 21:37:09 +08:00
fanlusky 73fd24b53d Strengthen the adaptive sizing of the FTB when the resolution changes. 2026-08-08 19:49:19 +08:00
fanlusky 5a11c7dc87 Attempt to fix the issue where the candidate window is truncated in some windows, such as in CAD. 2026-08-04 12:20:33 +08:00
fanlusky f0b9932c3e Continue trying to stabilize the WebView2 loading process during server initialization. 2026-07-31 19:51:56 +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
fanlusky a53d3c76c0 [Regression]: The boundary overflow issue of the vertical candidate window should be determined and resolved based on the maximum possible window size. 2026-07-11 18:42:59 +08:00
fanlusky 29ac206583 Fix the position offset issue of the horizontal candidate window when encountering boundary overflow. 2026-07-11 17:03:01 +08:00
fanlusky c83b0f6ead Refactor 2026-06-19 22:05:53 +08:00
fanlumaster a66c1f1561 Wrap log with macros. 2026-03-14 00:21:34 +08:00
fanlumaster 69efed6068 [ftb]: Hide ftb when fullscreen detected 2026-01-03 14:01:09 +08:00
fanlumaster bbcce141be [ftb]: Adjust initial position 2025-12-31 15:36:18 +08:00
fanlumaster 081602f518 [ui]: Make webview2 rendering more stable 2025-09-18 13:54:46 +08:00
fanlumaster 9849b09cd5 [ui]: Adjust size and position in some cases 2025-09-17 17:18:40 +08:00
fanlumaster a934f1d988 [UI]: Make window not flickering when especially when bottom edge touch the monitor edge 2025-06-17 19:15:45 +08:00
fanlumaster be6c0bdd1d [feat]: adjust window 2025-03-29 09:54:26 +08:00
fanlumaster 6a1d360b09 adjust candidate window position when coming across edge condition 2025-03-27 16:27:30 +08:00
fanlumaster b48b731a1b get webview dom size 2025-03-27 11:25:39 +08:00