Commit Graph
24 Commits
Author SHA1 Message Date
Jia Sui 753312f32c fix(server): RDP 会话中候选窗缩放跟随宿主应用实际渲染比例 2026-09-11 22:21:57 +08:00
fanlusky 8544e74dc5 fix: Fix the position issue of the WebView2 candidate window when it touches the screen edge. 2026-09-06 14:59:19 +08:00
Evan 42238a2af6 style: 用 .clang-format 重排 server / windows / ui / log
一次性重排,无任何行为改动。四个目录各自的 .clang-format 放在仓库里已久,但全组织只有
MSIME-Linux 在 CI 里执行 clang-format 检查,这边 149 个文件里有 149 个不符合自己声明的风格。

已逐文件核对语义等价:去掉空白、注释与相邻字符串字面量拆分之后,全部 149 个文件与重排前逐字节
相同。差异只有三类——缩进与换行、clang-format 补的 } // namespace 结尾注释、以及长字符串被拆成
相邻字面量(C++ 保证自动拼接)。

这个提交会写进 .git-blame-ignore-revs。
2026-09-06 12:13:47 +09:00
fanlusky 5c02503139 Render the candidate window with D2D instead of WebView2
Drive the existing candidate HWND through CandidatePresenter and msimeui,
keep WebView2 for the menu, floating toolbar, and settings, and load
external skins from skin.toml color tokens. Restore cloud/AI badges on
D2D items, and keep click, pin, fix-position, and delete on the same
window messages as before.
2026-09-02 15:30:03 +08:00
fanlusky 30fc78f534 Improve candidate window stability, positioning, and pointer interaction 2026-09-01 00:45:19 +08:00
fanlusky e7c30e3b67 Fix the issue where the window may sometimes be truncated when it is at the edge. 2026-08-30 11:57:47 +08:00
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