Skip to content

修复:空控制台窗口 + TitleBar 设置按钮无响应 - #3

Closed
timeroute wants to merge 3 commits into
mainfrom
cursor/fix-titlebar-settings-dd67
Closed

timeroute wants to merge 3 commits into
mainfrom
cursor/fix-titlebar-settings-dd67

Conversation

@timeroute

@timeroute timeroute commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

问题

  1. 安装后启动会多出一个空控制台窗口
  2. TitleBar 设置齿轮点击无反应
  3. 启动 / 切换中英文时会闪好几个窗口

修复

  1. #![windows_subsystem = "windows"]:主程序不再带控制台
  2. 设置按钮叠在 TitleBar 外层并 occlude(),避免拖拽区吞点击
  3. 闪窗根因:每次调用 wslc CLI 都会弹出控制台
    • 所有 Command 加 CREATE_NO_WINDOW
    • 切语言只更新文案,不再 refresh 跑 CLI
    • 窗口打开前只设一次 Dark 主题,避免 Light→Dark 闪一下
Open in Web Open in Cursor 

cursoragent and others added 3 commits October 10, 2026 06:56
Use the windows subsystem so MSI launches do not spawn an empty
console. Overlay the titlebar settings control outside the drag
hitbox and occlude it so Windows HTCAPTION no longer swallows clicks.

Co-authored-by: 绿岸公式 <chinesejar@gmail.com>
GPUI Stateful styling has no inset_y_0 helper; use top_0/bottom_0.

Co-authored-by: 绿岸公式 <chinesejar@gmail.com>
Hide child CLI consoles with CREATE_NO_WINDOW, apply the dark theme
once before the first window, and relocalize UI without re-running
wslc commands when switching language.

Co-authored-by: 绿岸公式 <chinesejar@gmail.com>
@timeroute timeroute closed this Oct 10, 2026
@timeroute
timeroute deleted the cursor/fix-titlebar-settings-dd67 branch October 11, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants