Skip to content

Fix/3958 dock tooltip & app icon perf - #3962

Merged
bbedward merged 3 commits into
duxlabs-dev:masterfrom
PandorasFox:fix/3958-dock-perf
Oct 27, 2026
Merged

bbedward merged 3 commits into
duxlabs-dev:masterfrom
PandorasFox:fix/3958-dock-perf

Conversation

@PandorasFox

Copy link
Copy Markdown
Contributor

Description

The main change is 3eb6cdd, which makes the dock app tooltip a persistent surface anchored to the dock (e.g. creates alongside dock surfaces when showing the dock), preventing repeated tooltip surface creation/destructions and frame hitching when mousing over the dock, which was particularly noticeable with magnification on (as the icons were scaling up/down more gradually, and skipped frames made the scaling jittery)

The second change makes sure that we load an app icon big enough for scaling up cleanly, instead of an icon sized for the dock icon as-is. Normally, the loaded icon was for the default dock size, but would get crunchy when upscaled. This loads a larger texture when needed for magnification, and renders more cleanly:

image

left to right: master today, this branch, #3961, this branch + 3961 together. Even at max size, the app icon cleanup + dock cleanup still looks sharper at max size when magnified at 160% :)

(tooltip positioning w/ magnification and the canvas cutoff #3959 are left untouched by this, but could also do with some love after all this)

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

#3958

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • [n/a] New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • [n/a] 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
  • [n/a] I have opened a corresponding pull request in dlx-docs to document any new behaviors: https://github.com/duxlabs-dev/dux-docs

PandorasFox and others added 2 commits October 26, 2026 23:19
Each tooltip show mapped a new layer surface, which started a render
thread and blocked the gui thread for its first frame on every hover.
The dock now keeps its tooltip mapped and toggles only the content, and
unmaps it under a fullscreen window so that window can still be scanned
out directly.

Refs duxlabs-dev#3958

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Magnification scales the icon item, but the pixmap was decoded at the
resting size, so magnified icons were upscaled and looked crunchy.

Refs duxlabs-dev#3958

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@bbedward

Copy link
Copy Markdown
Member

/claude review

@claude

claude Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Claude review

Looks good, with one small fix needed for icon sharpness when magnification and enlarge-on-hover are both on.

  • When both are on, the icon load scale should multiply them, not take the max: quickshell/Modules/Dock/DockAppButton.qml:34
    Checked: the persistent DTooltip surface (visibility, empty input mask, other DTooltip users), the IconImage→Image swap (status refs, async, sourceSize binding vs scale-based magnification), and deprecated shims. Model: claude-opus-5-5.

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
@bbedward

Copy link
Copy Markdown
Member

/claude review

@claude

claude Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Claude review

No issues found. The earlier load-scale finding is fixed in a2f5f90, which now multiplies magnification and enlarge-on-hover.
Checked: the persistent DTooltip surface (visibility, empty input mask, other DTooltip users), the IconImage→Image swap and the status refs, the hostWindow/fullscreenOnScreen refs in DockBody, and deprecated shims. Model: claude-opus-5-5.

@bbedward
bbedward merged commit fa62bf2 into duxlabs-dev:master Oct 27, 2026
2 checks passed
dux-ci Bot pushed a commit that referenced this pull request Oct 27, 2026
port 2.0

(cherry picked from commit fa62bf2)
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.

2 participants