Skip to content

v2.0.1

Choose a tag to compare

@github-actions github-actions released this 09 Feb 02:57
· 34 commits to main since this release
fix: 修复 Linux 下助手窗口底部超出目标窗口的问题

Linux 上 X11 Geometry()/Resize() 操作的是客户区(不含 WM 装饰),
导致 sidekick 设置客户区高度 = 目标高度时,视觉窗口多出了标题栏高度。

修复:
- GetDWMFrameOffsetsByTitle (Linux) 使用 _NET_FRAME_EXTENTS 获取 WM 装饰尺寸,
  返回负值 Bottom offset 使对齐公式自动减去装饰高度
- GetWindowPhysicalWidthByTitle (Linux) 返回含 WM 边框的实际视觉宽度

不影响 Windows 平台的行为(Windows 的 FrameOffsets 仍为正值阴影补偿)。