Closing a tab blanks the whole window, tab bar included, for about 0.5 s

未关闭
#1,349 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
64/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
c
领域
desktop-dev

调研方向

Start by tracing the GUI tab-close path and the code that removes a page or tab, using the related change-path issues #1210, #1267, and #1237 as references. Determine whether the entire tab control is being rebuilt or unmapped when a non-final tab closes. Done means closing one of several tabs removes only that tab, with the tab bar and remaining content staying visible and no blank-frame delay.

由索引模型根据 Issue 内容生成。

描述

Closing a tool tab blanks the whole window for about half a second before it
redraws.

Measured from a screen recording of the 9.6.1 build at 8825ee3dd (1920x1200,
60 fps source, sampled at 30 fps): 14 consecutive frames, about 460 ms, in
which the client area is entirely empty. It is not a flicker in the content
pane: the tab bar itself disappears too, leaving the menu bar over a blank
window, and then the full layout is drawn again with one fewer tab.

Sequence from the recording:

  • four tabs (Organizer + three Viewers), Organizer content drawn normally;
  • the x of a Viewer tab is clicked;
  • whole window blank, no tabs, no tree, no panels, for ~0.46 s;
  • window returns complete, with two Viewer tabs.

This is on the close path specifically, with several tabs open. Related work
already landed on the change path (#1210, #1267) and on the desk after the
last tab closes (#1237), so this is the remaining case: closing one tab while
others remain.

Likely shape, from how the earlier ones went: the host rebuilds or re-lays-out
the whole tab control after a page is removed, rather than removing the page
and letting the rest stand, so everything is unmapped and redrawn. A redraw
that cheap to trigger should not need the tab bar to go away.

Worth fixing because it reads as a crash to a user: for half a second the
application looks like it has lost its window.

主要语言
C
星标
10
派生
8
平均合并
6 小时 32 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

FriendsofECCE/ECCE 的其他 Issue

查看 FriendsofECCE/ECCE 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。