Repository navigation
Give bar panels and notifications the gaps_out of their own edge - #19624
ancientastronauttheorist wants to merge 4 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gr84VuXNHLdS8Sn11pRKL1
[Medium impact] The PR appears safe to merge; no actionable issues remain. SummaryThe PR keeps all four Hyprland outer gaps and uses the matching edge for bar panels and notifications.
The previous-review merge bases differ, so the full PR changes were reviewed. No runtime or visual checks were performed during this review. Reviews (3) · Last reviewed commit: "Describe per-edge gaps_out placement in ..." · Reviewed by Greptile |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gr84VuXNHLdS8Sn11pRKL1
|
Codex High read the six-file diff, the linked #8339 report and discussion, the review comments, and the spacing code around the changed callers at |
|
GPT-6 High in Codex reviewed the parser, panel placement and fitting, notification margins, callers retaining scalar The CLI suite passed. The full shell suite had four failures, each reproduced on current Opus 5.5 High and muse-wonder via pi at high thinking reviewed the source. Both identified that #8339's exact configuration, a top bar with Muse also flagged that |
Keep the per-edge gaps_out parsing in applyGapsOutOption, which quattro now shares with the batched option query. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gr84VuXNHLdS8Sn11pRKL1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gr84VuXNHLdS8Sn11pRKL1
|
GPT-6 High in Codex read the revised seven-file diff at Classification is unsettled on this head: I classified the existing use of the top gap for panels on other edges as a bug fix; the configured second classifier, DeepSeek v4p1 Flash, classified this revision as an enhancement. That disagreement stops verification under the queue workflow and is waiting on the maintainer to resolve. No worker tests, new visual verification or second code review ran on this head, and no labels or code changes were applied. |






What changes
Fixes #8339.
Style.applyGapsOutJsonkeeps only the first number of Hyprland'sgeneral:gaps_out, so with uneven gaps every bar dropdown and the notification deck use the top gap, whatever edge they sit against. With a bottom bar andgaps_out = { top = 0, bottom = 30 }, dropdowns sit flush on the bar. With a larger right gap, notifications still hug the right edge.The open question on the issue was which edge each use should follow. This takes the rule Hyprland applies to windows: something placed against an edge uses that edge's gap (halved, as
Style.gapsOutalready is).Stylekeeps all four edges ingapsOutEdges, parsed with the existingBorderGeometry.parseWidthSpec, and addsgapsOutAt(edge).KeyboardPanel.gap,PopupCard.margin) use the gap on the bar's edge. A top bar withtop = 0gets dropdowns that sit on it the way its windows do.Delivery.deckMarginsstill accepts a single number.Style.gapsOutis still the top edge. It's used by things placed without regard to one edge (centered cards, the dock menu,KeyboardPanel.margin), and it stays available to third-party plugins. With the default symmetricgaps_outevery value is the same as before.#13138 (floating bar) adds the same
gapsOutEdgesproperty, also parsed withparseWidthSpec, and edits the same function and the same line innotifications/Service.qml. Whichever lands second has a small conflict to resolve, with the same property on both sides.Verification
test/shell.d/notifications-test.shpasses with a new case for uneven gaps ({ top: 0, right: 14 }for top, right and bottom bars). It fails againstquattro'sdeckMargins(top with uneven gaps) and passes with this change../test/all: the CLI suite passes, and 433 of 434 shell test files pass. The one failure,luks-rekey-journal-test.sh(kill: … No such process, thenluks2: after '' setup completes), touches nothing this changes. It passes when run alone, both on this branch and onquattro, so I take it to be a timing flake under a full run on this dual-core machine.quattroand from this branch one after the other, with gaps set throughhyprctl eval, and measured the screenshots pixel by pixel:gaps_out = { top = 0, right = 10, bottom = 30, left = 10 }, power panel open:quattroputs its border flush on the bar (0 px). This branch leaves 30 physical px = 15 logical px, which is half ofbottom.gaps_out = { top = 10, right = 40, bottom = 10, left = 10 }, anotify-send:quattroputs the card 10 physical px = 5 logical px from the right edge (half oftop). This branch puts it 20 logical px away (half ofright).PopupCardon screen. Its margin changes the same way, but as the bot noted on the issue, its offset is measured from the anchor widget, not from the bar.Screenshots
Filed by Claude Opus 5.5 via Claude Code.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Gr84VuXNHLdS8Sn11pRKL1