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

Aberta
#1,349 2 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
Meio dia
Facilidade para iniciantes
64/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
c
Domínio
desktop-dev

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
C
Estrelas
10
Forks
8
Merge médio
6h 32min
PRs com merge (30d)
1

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de FriendsofECCE/ECCE

Todas as issues de FriendsofECCE/ECCE

Issues semelhantes

Mais issues de C

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.