Repository navigation
Re-add tint2 to the headful image - #522
Merged
Merged
Conversation
chruffins
marked this pull request as ready for review
November 17, 2026 18:15
masnwilliams
approved these changes
Nov 17, 2026
masnwilliams
left a comment
Contributor
There was a problem hiding this comment.
Approving: putting the package back is the right call. Something outside the image runs tint2 through process exec, so dropping it was a breaking change.
Optional suggestions:
- Leave a note on the line (inline suggestion below). #513 removed
tint2because nothing in the repo showed it was needed, and this PR deletes the only comment about it. A short note saying it's an external dependency, like the one onx11-utilsjust above, makes the next removal attempt visible in review. - PR description: "It's unused" is true for the image but not for sessions. Saying it's kept for workloads that start it through process exec would explain why it's here.
Follow-up, not for this PR:
- openbox dock strut:
openbox/rc.xmlhas no<dock>section, so a panel started withpanel_dock = 1gets the default dock strut. That strut shrinks_NET_WORKAREA, and the maximized browser ends up part-width (the issue #513 addressed).<dock><noStrut>yes</noStrut></dock>inrc.xmlmight fix it from the image side, but it needs checking against a repro first. - Regression test: an e2e test could start
tint2withpanel_dock = 1and assert that the_NET_WORKAREAwidth matches the root and the window stays maximized at root width. It would fail if the package is removed or if the strut issue comes back.
| # no panel: a tint2 started inside a session declares a strut that can | ||
| # reserve part of the work area, leaving a maximized window short of the | ||
| # display with the root background showing beside it | ||
| tint2 \ |
Contributor
There was a problem hiding this comment.
Optional: keep a note so the dependency is visible next time someone audits this list.
Suggested change
| tint2 \ | |
| # not started by the image: kept for workloads that start a tint2 panel | |
| # through the process API | |
| tint2 \ |
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.
Re-adds the
tint2package to the headful image for compatibility. The image doesn't start it, but workloads can start a tint2 panel through the process API.A tint2 panel started with
panel_dock = 1goes into openbox's dock, and the default dock strut shrinks_NET_WORKAREA. A maximized browser then covers only part of the display.rc.xmlnow sets<dock><noStrut>yes</noStrut></dock>so docked apps don't reserve any of the work area.Changes
images/chromium-headful/Dockerfile: installtint2again, with a note on why it's kept.images/chromium-headful/openbox/rc.xml: disable the dock strut.server/e2e/e2e_tint2_dock_strut_test.go: start a docked tint2 through the process API, then assert that_NET_WORKAREAequals the root and the maximized window stays at root size. The test fails if the package is removed or the strut comes back.Testing
Built the headful image locally with and without the
rc.xmlchange:_NET_WORKAREAis0, 0, 1024, 1536on a 2048x1536 root, and the maximized window is 1024 wide.TestHeadfulDockedTint2KeepsFullWorkarea,TestHeadfulUnmaximizeRestoreGeometry, and the headfulTestDisplayResizeChromiumWindowsubtests pass.