Skip to content

fix(frame): keep launcher edge-hover on the Top layer - #3453

Merged
bbedward merged 1 commit into
duxlabs-dev:masterfrom
Conava:launcher-edge-hover-overlay-layer
Sep 17, 2026
Merged

bbedward merged 1 commit into
duxlabs-dev:masterfrom
Conava:launcher-edge-hover-overlay-layer

Conversation

@Conava

@Conava Conava commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Title: fix(frame): keep launcher edge-hover on the Top layer

Branch: launcher-edge-hover-overlay-layer (off upstream/master 641d65c, commit d891957)
Push with: git push origin launcher-edge-hover-overlay-layer


Description

Opening the launcher by hovering the frame edge (Frame → "Edge Hover Reveal") opens it centered with a different animation than opening it by keybind or the bar button, even with a frame side configured for it to emerge from.

Modules/Frame/FrameLauncherHoverZone.qml:46 opens the launcher with CompositorService.framePeerSurfacesUseOverlayForScreen(zoneLoader.modelData) as the overlay-layer argument. That function resolves to frameConfiguredForScreen() (CompositorService.qml:719-721,763), true whenever the frame is enabled for the screen, so the hover trigger requests the Overlay layer in ordinary use. DankLauncherV2ModalConnected.qml:88 requires the Top layer for frameOwnsConnectedChrome to be true, so on Overlay the connected side-anchoring is skipped and modalX/modalY fall back to plain screen-center (lines 143-144), with the standalone animation curve instead of the connected one.

The keybind/bar-button path (DMSShellIPC.qml:1481, :1525) calls openDankLauncherV2() with no arguments, so it stays on the Top layer and anchors correctly. The edge-hover zone only activates in connected frame mode to begin with (its own eligible check already requires CompositorService.usesConnectedFrameChromeForScreen), so there's no case where it needs the overlay/standalone behavior. This PR passes false explicitly instead: _setDankLauncherV2TriggerUsesOverlayLayer's value === true check treats an explicit false the same as the keybind path's omitted argument, so both land on the Top layer.

Same gate shape (frameOwnsConnectedChrome requiring the Top layer) also affects the power menu, per a comment on #3401 — that one hardcodes useOverlayLayer: true in PowerMenuModal.qml against the identical check in DankModalConnected.qml:40. Not touched here: fixing it there means editing the gate shared by every connected modal, not just this one call site.

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

Fixes #3394

Screenshots / video

Checklist

(No Go changes, no new strings, no new behavior to document, so no dlx-docs PR.)

Validation

Tested on Hyprland, frame mode connected, frameLauncherEmergeSide: bottom, via ./dms-dev:

before after
Keybind/bar button anchored to configured side, connected animation unchanged
Edge hover centered, standalone animation anchored to configured side, connected animation, matches keybind
  • make lint-qml — PASS (3 entrypoints)
  • prek run --files quickshell/Modules/Frame/FrameLauncherHoverZone.qml — clean

Opening the launcher by hovering the frame edge requested the Overlay
layer via CompositorService.framePeerSurfacesUseOverlayForScreen(),
which resolves to whether the frame is configured for the screen and
is true in normal use. DankLauncherV2ModalConnected's
frameOwnsConnectedChrome requires the Top layer, so the overlay
request silently dropped connected-chrome anchoring: the launcher
opened dead-centered with a different animation instead of emerging
from the configured frame side.

The keybind/bar-button path already opens on the Top layer by passing
no overlay argument. The edge-hover trigger only runs in connected
frame mode to begin with (gated by usesConnectedFrameChromeForScreen
in this file's own eligible check), so there's no case where it needs
standalone/overlay behavior. Match the keybind path.
Copilot AI lite review requested due to automatic review settings September 16, 2026 19:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@bbedward
bbedward merged commit 579d6f7 into duxlabs-dev:master Sep 17, 2026
2 checks passed
bbedward pushed a commit that referenced this pull request Sep 17, 2026
Opening the launcher by hovering the frame edge requested the Overlay
layer via CompositorService.framePeerSurfacesUseOverlayForScreen(),
which resolves to whether the frame is configured for the screen and
is true in normal use. DankLauncherV2ModalConnected's
frameOwnsConnectedChrome requires the Top layer, so the overlay
request silently dropped connected-chrome anchoring: the launcher
opened dead-centered with a different animation instead of emerging
from the configured frame side.

The keybind/bar-button path already opens on the Top layer by passing
no overlay argument. The edge-hover trigger only runs in connected
frame mode to begin with (gated by usesConnectedFrameChromeForScreen
in this file's own eligible check), so there's no case where it needs
standalone/overlay behavior. Match the keybind path.

(cherry picked from commit 579d6f7)
@Conava
Conava deleted the launcher-edge-hover-overlay-layer branch September 18, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using the "frame" with "connected" surface behaviour, then using "edge hover reveal" leads to unexpected results.

3 participants