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

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

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp, linux
领域
desktop

调研方向

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.

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

描述

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).

主要语言
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 摘要。