Repository navigation
perf(settings): open Settings smoothly and without a first-click build - #2054
Merged
Merged
Conversation
Fade the Settings layer through its own opacity from the frame clock. A CSS transition re-styles the layer's tree each frame and needs a prior style pass, so the first open popped in instead of fading. Build and lay out one hidden layer per process after the first paint, so the first click no longer pays for it. Only the first tab shown does this, because Settings is per tab and the costs that dominate are paid once per process. Stop the udiskie row polling while its Settings layer is closed, since a pre-built layer would otherwise poll for the whole session. Refs #2050
This was referenced Nov 5, 2026
wmfeht
added a commit
to wmfeht/strata-feature-map
that referenced
this pull request
Nov 7, 2026
Sync lgse/strata#2054–#2065: Settings fade and pre-build, Language & Units, code-block wrap, sidebar rail alignment, trash scheme handler
l0gicgate
added a commit
that referenced
this pull request
Nov 7, 2026
…n the window (#2081) * fix(delete): keep the permanent-delete dissolve when the dialog closes Since #1900 the delete confirmation hands focus back to the listing when it is removed, before the confirmed action prepares the dissolve. The focus change leaves the column without a current allocation, GTK refuses to snapshot it, and the dissolve was silently dropped for every permanent delete. Prepare the dissolve when Confirm is clicked, while the column is still laid out. * fix(settings): open and close Settings instantly The frame-clock fade from #2054 eased in on close, so Settings barely changed for most of its 200 ms, and slow renderers such as Cairo stretched it further. Show and hide the layer at once instead, and drop the fade module that only Settings used. * fix(context-menu): keep context menus inside the window at full height Menus were capped by the monitor, so they could run past the window's edge. Place them inside the window instead: below the click when the whole menu fits there, above when only that side fits, otherwise slid up so it shows whole, scrolling only when the window is shorter than the menu. Also keep them clear of the window's left and right edges. A hidden popover measures as empty and the file menu's last items only take their size on its first frame, so measure the menu frame and its content directly, and refit on the frames after it opens until its size holds. * fix(preview): keep Space from opening an empty preview on a folder Clicking a folder in Columns moves focus to its column with nothing focused there, so Space toggled the preview with no target and opened a drawer that only said "No preview for this selection". With a folder or nothing focused, Space now only closes a drawer that is already open. * test(delete): let the confirmation paint before confirming it Opening the dialog moves focus to its confirm button, which leaves the column awaiting a new allocation until the next frame. Confirming before that frame is not something a person can do, and it made the dissolve regression test fail on slower CI runners. * fix(delete): dissolve the open folder's row when deleting it permanently The dissolve is now prepared when Confirm is clicked, before the confirmed action moves the cursor out of a folder being deleted. Deleting the folder whose column is active in Columns then looked for its row in its own column, found none, and dropped the dissolve. Prepare it from the depth the deletion will act on, without moving focus while the dialog is open. * refactor(context-menu): compute menu placement apart from applying it --------- Co-authored-by: Pierre Berube <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Opening Settings paused on the first click and stuttered on every open.
Measured with a temporary probe (not committed), debug build, software GL under Xvfb, 945×900:
The pre-build costs about 78 ms of idle work, split across two callbacks, and about 14 MiB, once per process.
Not verified or not fixed:
Visual evidence
N/A. Agents cannot upload attachments. The fade looks the same apart from dropping the dialog's slight scale-up.
How to test
Expected result: The first open has no noticeable pause and fades in. Repeat opens and closes fade smoothly at the display refresh rate. With Reduce motion on, Settings appears and closes without a fade. Focus returns to the file list after closing.
Related issue
Closes #2050