Organizer desk blank after restoring a minimized window, when the tree changed while it was minimized

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

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
30/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
cpp, linux
Domínio
desktop

Direção de pesquisa

Start with the CallAfter in CalcMgr's setContextPanel and the 1x1 allocation noted at ToolTabs.C:1280, then reproduce by iconizing the Organizer, changing job state, and restoring it. Check whether the desk panel gets sized or refreshed after the window is restored (wxEVT_ICONIZE, SizeWindows, Layout, Refresh). Done means the desk hook reports the expected size and shown state after restore, without a click.

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

Descrição

bug

Seen in 9.6.1 on Linux/X11 (tabs, ECCE_ONE_PROCESS=1). Steps: the Organizer was minimized. Meanwhile two ORCA jobs were submitted from outside the GUI (ecce-launch), so the job store and broker updated the tree while the window was minimized. The window was then maximized again. The desk (right pane) stayed blank until a click.

The live process was idle in gtk_main with nothing waiting to paint, so no redraw had been requested. Likely mechanism: the desk panel is rebuilt by the state change WHILE the window is unmapped. The CallAfter in CalcMgr's setContextPanel (the #1237 fallback) then runs when nothing is on screen. Restoring the window does not size or repaint that panel again, matching the 1x1 GTK allocation described at ToolTabs.C:1280.

Fix to try: when the window is restored (wxEVT_ICONIZE with IsIconized()==false, and a maximize), redo the desk sizing: SizeWindows, Layout, Refresh.

Test: iconize through a hook, change the selected item's state (or refresh the context), restore, then read the desk hook (size and shown).

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.