Skip to content

feat(bar): connected popouts for bar & island variants - #4129

Merged
purian23 merged 12 commits into
duxlabs-dev:masterfrom
Conava:island-connected-popouts
Nov 10, 2026
Merged

purian23 merged 12 commits into
duxlabs-dev:masterfrom
Conava:island-connected-popouts

Conversation

@Conava

@Conava Conava commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Screenshots / video

Before:
screenshot_2026-11-04_23-18-51

Setting:
screenshot_2026-11-04_23-19-35

After:
screenshot_2026-11-04_23-19-14

Edit, now also for bar mode:

Image Image

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dux-docs to document any new behaviors: docs(dms): document connected popouts for the island dux-docs#197

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.
@purian23

purian23 commented Nov 4, 2026

Copy link
Copy Markdown
Member

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!

@Conava

Conava commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

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.
@Conava

Conava commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

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.

@purian23

purian23 commented Nov 7, 2026

Copy link
Copy Markdown
Member

/claude review

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

Looks solid overall. One resource issue to address before merge.

  • The bar layer surface is screen-sized 24/7 when connected popouts is on, so it keeps full-screen buffers and redraws them on every bar repaint (island bars also run a full-window shader each repaint), quickshell/Modules/DBar/DBarBody.qml:816
    Checked: popout host joining logic, BarChrome geometry/shader, blur regions, settings toggles and barConnectsPopouts, the CompositorService fullscreen refactor, descriptor barId plumbing, i18n and deprecated shims. Model: claude-opus-5-5.

Comment thread quickshell/Modules/DBar/DBarBody.qml Resolved
…-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.
@Conava Conava changed the title island: connect popouts to the satellites without a frame bar: connected popouts for bar and island Nov 7, 2026
@Conava

Conava commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

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:

  • a bug where an auto-hide bar slid away while a popout opened by click was still open
  • a bug where the screen corners got filled in on islands with goth corners on the satellites
  • a bug where translucent satellites lost their rounded blur corners
  • a bug where the curve joining the bar and a popout had no blur and ended in a hard step
  • a spike where a popout ended close to the end of a satellite, it now curves into it
  • a bug where closing a popout while it waited for the bar could open it again
  • a disabled bar no longer counts as able to paint a popout

@purian23

Copy link
Copy Markdown
Member

/claude review

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

Top 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.

  • The bar border keeps drawing across the popout join, because only the fill, wings and shadow are hidden when the bar is joined, quickshell/Modules/DBar/BarSurface.qml:229

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.
Checked: bar room handshake (wanted/ready, 200ms fallback, release timer, Hyprland shrink path), window sizing vs exclusive zone and input mask, BarChrome geometry/shader, blur fillet regions, DPopoutHost joinsBar/inset/anchor changes, settings toggles and barConnectsPopouts, CompositorService refactor, descriptor barId, i18n, deprecated shims. Model: claude-opus-5-5.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found. The latest pass (9cde347c8) fixes the earlier bar border comment: the chrome strokes the joined outline and the bar border is hidden under it.

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 (barRoomWait, _overStackedModal moved back into open()), the barRoomKey fallback vs bar _barId, BarChrome paintBounds sizing vs window-space uniforms and blur regions, shader stroke/shadow compositing and end fillets, wing blur keyed on shaped, barCanConnectPopouts split and the settings toggles/ControlledBy navigation, satellite lean by triggerSection, fractional-scale spacingPx, i18n, deprecated shims. Model: claude-opus-5-5.

# Conflicts:
#	quickshell/Modules/DBar/DBarBody.qml
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

The master merge (7ead407b7) introduced one regression in the window shrink path. The rest of the PR is unchanged since the last clean pass.

  • Island sheet release now sets the shared roomShrinking, which also holds popoutRoomHeld. On Hyprland with connected popouts on, a bar hosting an island grows to full screen and then shrinks with a full-screen buffer, quickshell/Modules/DBar/DBarBody.qml:860

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 DBarBody.qml conflict resolution against master (#4199 island room hold/release, _shrinkWindow, idleHostThickness/hostThickness, both frameSwapped handlers, popout release timer, DBarWindow implicit size binding), and that no other PR file changed in the merge. Model: claude-opus-5-5.

Comment thread quickshell/Modules/DBar/DBarBody.qml Outdated
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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found. 9dbf217fb fixes the earlier shrink regression: the island release no longer sets the popout flag, so a bar hosting an island stays small when the sheet closes.

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 popoutRoomShrinking flag. It is set from _shrinkWindow before setBarRoom(""), so popoutRoomHeld stays true until the small buffer is out. The island release path no longer touches it, and the frameSwapped handler clears both flags and grows the window back when needed. The non-Hyprland path returns false and leaves the flag clear. No other file changed since the last pass. Model: claude-opus-5-5.

@purian23 purian23 changed the title bar: connected popouts for bar and island feat(bar): connected popouts for bar & island variants Nov 10, 2026
@purian23
purian23 merged commit e4f74f3 into duxlabs-dev:master Nov 10, 2026
6 checks passed
@Conava

Conava commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for finishing this @purian23!

@Conava
Conava deleted the island-connected-popouts branch November 10, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants