fix(hud): keep the "End session" confirm popover on-screen (#97) #101
No reviewers
Labels
No labels
bug
duplicate
enhancement
future
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
albert/shepherd-launcher!101
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "u/albert/97/hud-popover-clipped"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The prompt is a Popover parented to the action button, the rightmost
widget of the right-aligned HUD bar. With no explicit placement GTK
centered it horizontally on the button, pushing half of it past the
right screen edge; under gtk4-layer-shell + sway an oversized popup is
not slid back on-screen, so it clipped. The XWayland HiDPI counter-scale
enlarges the popover, making the overflow bigger and the bug more
visible (hence "occasionally").
Give the popover PositionType::Bottom (a top bar has unlimited room
below) and, at popup() time, right-align it to the button by shifting
its center left by (popover_width - button_width)/2 — landing its right
edge on the button's right edge, fully on-screen, without relying on any
compositor slide-to-fit. Width is measured from the content Box (a
GtkPopover reports ~0 before it is mapped) plus the scale-aware chrome.
Reproduced and verified headlessly at HiDPI factor 1.5 and the normal
factor 1.0; see docs/ai/history/2026-07-19 001.
Also documents the headless harness's dev-click limitation in the
headless-dev skill, and notes a preference for in-repo docs over private
agent memory in AGENTS.md.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01S4naZNwEpnVCF71D1Huhe4
Fixes #97