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

Offen
#1,349 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
64/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
c
Bereich
desktop-dev

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
C
Sterne
10
Forks
8
Ø Merge
6 Std. 32 Min.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus FriendsofECCE/ECCE

Alle Issues in FriendsofECCE/ECCE

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.