Repository navigation
feat(bar): connected popouts for bar & island variants - #4129
Conversation
Popouts opened from island satellites floated below the bar, and the connected look was only available with a full frame around the screen. Add a Connected popouts option for satellites with a background. The bar window now paints the satellites and the popout background as one shape, since two windows can't update on the same frame and any split between them drifts during motion. Popouts reuse the path that publishes their chrome to the frame, including the handoff when switching between them, and lean toward the screen edge so less of them runs past the satellite.
|
This one is really cool and goes back to a long standing request for this type of functionality outside of the full connected mode. We'll come back to this one after the next hotfix (which is likely to be soon) and I may even see what it would take to port and share code with standard mode so this covers both! Awesome stuff! |
|
I can expand this to work for island and bar mode @purian23 |
Connected popouts only worked for island satellites. Extend it to the normal bar: the bar window paints the bar and the popout as one shape while a popout is out, and the bar draws itself as before otherwise. The popout takes the bar's color and opacity. The option is now one per bar key, in the bar's Surface settings for a normal bar and in the Satellites card for the island. It replaces the popup gap while on. It falls back to floating popouts when the bar has no background, is hidden or isn't on that screen. A popout's chrome now names its bar, so stacked bars on one edge don't both paint it. Also recapture the popout's travel when its size changes during the open. It was taken before the content loaded, so a popout's first open showed the content without a background for a few frames.
A connected popout relies on the bar window for its background, so every case where that window can't paint it left the content bare. Fall back to the popout's own chrome when the bar stops qualifying while the popout is open, or when a fullscreen window on Hyprland hides the bar window. Read the bar's live config instead of the popout's snapshot, and leave overlay bars out, since their popouts can't share the bar's layer. Keep the popout's background in place while the bar slides away under strict auto-hide, and resolve the window origin through the layout, as a floating island's window doesn't start at the screen origin. Blur now follows the popout's far corners and the auto-hide slide, and rebuilds when the option is turned off.
|
Works for normal bar too now, the option is in the Surface card of the bar appearance settings and removes the popup gap option while it's on. For the island it stays in the Satellites card. Both use the same per bar setting and the same label, so no new translations. The popout takes the color and opacity of the bar, and the bar keeps drawing itself until a popout opens. Also fixed a bug where a popout opened for the first time showed its content without a background for a few frames. |
|
/claude review |
Claude reviewLooks solid overall. One resource issue to address before merge.
|
…-screen With connected popouts on, the bar window stayed as large as the screen all day. Top and left bars now keep their idle size and grow when a popout asks for room: the open waits for a frame at the new size, up to 200 ms, and the room is held for a second after the popout closes so moving between popouts doesn't resize the window. Bottom and right bars keep the room, since a layer surface shows its old buffer at the new origin for a frame while growing there. Fix an auto-hide bar sliding away from a popout opened by click: nothing told it the popout became visible, and hover only worked because it re-enters the open. Also stop filling the screen corners with goth satellites when no shape reaches them, stop square blur regions cancelling the satellites' round ones before a popout is out, and treat a disabled bar as unable to paint a popout.
The blur regions were the bar and the popout as rectangles, so the curve joining them was painted without blur and ended in a hard step.
Satellites were blurred as squares while a popout was out, so blur showed past their rounded corners. Give the blur regions the painted corners, capped like the shader caps them. When a popout ends close to a satellite's end, its join ran into the satellite's corner, which left a spike and a small bulge. Scale both radii there so the arcs share the room as an S-curve. Blur the goth corner that moves out with a popout past a satellite's end, and keep the popout from rounding into the screen end, which painted a wedge without blur.
Hyprland draws the old full-size buffer into the shrunken layer surface until the next commit, so the whole bar was squeezed for a frame about a second after a popout closed. Resize the buffer first, which a plain commit applies to the surface, and only then update the layer size.
|
Top and left bars no longer keep a full-screen window. The window stays at the size of the bar, grows when a popout opens and shrinks again a second after it closes. Bottom and right bars still keep the full-screen window while the option is on. When a window at those edges grows, it moves to its new position before the new content is drawn, so following the claude suggestion there would introduce flickering on the bar. Its not optimal for rendering but since its optional and only for top or right bars id leave it as is for now. Also fixed:
|
|
/claude review |
Claude reviewTop and left bars now grow only while a popout is open, and the open/close handshake holds up. One visual issue is new in this round.
Bottom and right bars still keep a full-screen window while the option is on. The earlier comment covers this, and the author chose to leave it for now. |
| x: Math.max(0, root.axis.isVertical ? motion.currentOffsetCross : (root.alongWings ? motion.currentOffsetAlong : 0)) | ||
| y: Math.max(0, root.axis.isVertical ? (root.alongWings ? motion.currentOffsetAlong : 0) : motion.currentOffsetCross) | ||
| color: root.barWindow._bgColor | ||
| visible: !root.paintedElsewhere |
There was a problem hiding this comment.
When the popout joins, the body fill and the wings are hidden and the shadow fades out. The border Loader below (z: 100, active: barConfig?.borderEnabled) keeps drawing, though. It sits above BarChrome because barUnitInset comes after barChromeLoader. So with a bar border enabled, the bar's outline still runs straight across the seam where the popout connects, and it ends abruptly at the screen-edge wings.
Fix: hide or fade the border when paintedElsewhere is true (fading it with emerged would match shadowFade). Or hide the Connected popouts toggle while the bar border is on.
There was a problem hiding this comment.
@Conava i'm pushing some fixes and updates to this PR. Just a heads up.
- stroke the joined outline in the chrome shader and hide the bar border under it - paint only the chrome's bounds instead of the whole window - grant popout room on the next frame; drop stale modal state and guard a missing screen - align the bar inset and popout anchor on the same device pixel at fractional scales
Claude reviewNo issues found. The latest pass ( Bottom and right bars still keep a full-screen window while the option is on. The earlier comment covers this, and the author chose to leave it. Checked: the frameSwapped room grant and the Hyprland shrink path, the open/close wait ( |
# Conflicts: # quickshell/Modules/DBar/DBarBody.qml
Claude reviewThe master merge (
Bottom and right bars still keep a full-screen window while the option is on. The earlier comment covers this, and the author chose to leave it. |
| readonly property bool popoutRoomAlwaysHeld: axis.isFar | ||
| // The window sits below hostThickness until the small buffer is out, so the rooms stay held meanwhile. | ||
| property bool roomShrinking: false | ||
| readonly property bool popoutRoomHeld: barPaintsPopouts && (popoutRoomAlwaysHeld || popoutOut || popoutRoomState !== "" || roomShrinking) |
There was a problem hiding this comment.
The merge made the island shrink and the popout shrink share roomShrinking, and that flag also holds popoutRoomHeld. Take a top or left bar on Hyprland that hosts an island (layoutInstance.hostsIsland) and has connected popouts on. When the island sheet closes, islandRoomRelease calls _shrinkWindow(barSurfaceThickness) and sets roomShrinking = true. Because popoutRoomHeld then turns true, hostThickness jumps to the full screen height. implicitHeight follows it, so the window grows to full screen right after it was set small. On the next frameSwapped the flag clears and implicitHeight drops back with a full-screen buffer still attached. That is the blank frame _shrinkWindow is meant to avoid, plus a full-screen grow in between.
Fix: keep a separate flag for the popout shrink (the old popoutRoomShrinking), set only by the popout release timer, and use that flag here instead of roomShrinking.
Claude reviewNo issues found. Bottom and right bars still keep a full-screen window while the option is on. The earlier comment covers this, and the author chose to leave it. Checked: the new |
|
Thanks for finishing this @purian23! |
Description
Adds a Connected popouts option for the island satellites. Popouts opened from a satellite then connect to it like they do in connected frame mode, just without the frame around the screen. I really like how connected mode looks but wanted to keep the island look without the full frame.
It's off by default and sits with the other satellite options in the bar settings.
It respects the opacity, goth corners and custom radius settings
Edit: Also added for normal bar mode with the same setting in apprearance
Type of change
Related issues
Screenshots / video
Before:

Setting:

After:

Edit, now also for bar mode:
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings