Skip to content

Show live window previews in the dock - #143

Merged
SumirSeth merged 20 commits into
mainfrom
feat/window-previews
Nov 30, 2026
Merged

SumirSeth merged 20 commits into
mainfrom
feat/window-previews

Conversation

@SumirSeth

Copy link
Copy Markdown
Owner

What changed

A new choice for Window list: Previews for every app. Hovering an app in the dock shows a live preview of each of its windows, the way the Windows 11 taskbar does.

  • Each tile has the app icon, the window title and a close button on hover. The live preview below it keeps the window's shape.
  • Previews are DWM thumbnails registered on the window list itself. There is no capture, D3D, extra thread or helper window.
  • A hidden window of the taskbar's preview class shows while previews are open, so Chrome, Edge and other Chromium apps keep drawing windows that other windows cover.
  • A minimized window shows its last frame when Windows keeps one, and otherwise the app icon.
  • Clicking a tile switches to its window. Middle-click or × closes it.

Built on @JulienMaille's base from #136. His commits are kept as he wrote them.

Performance

  • Nothing is created unless the setting is on and a list is open. Thumbnails are unregistered when the list closes.
  • Title changes only reposition the existing thumbnails, without registering them again.
  • The text list modes are unchanged.

Tested

  • fmt, both clippy runs and cargo test --workspace pass (275 tests).
  • Checked in a Nightly build on Windows 11.

Closes #136.

🤖 Generated with Claude Code

JulienMaille and others added 19 commits November 30, 2026 16:30
The pinned 1.99 toolchain flags unformatted code in the thumbnail capture and render paths, plus a needless borrow and an eight-argument draw helper. Format the workspace and fix those lints so CI's check job passes.

Co-Authored-By: OpenCode <noreply@opencode.ai>
Create WGC resources lazily, use free-threaded pools with synchronized callbacks, join workers on close, and bound frame storage. Remove blocking UI-thread PrintWindow capture and debug paths. Handle minimized windows, resizing, DPI changes, failed captures and preview hit boundaries, with pure logic regression tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The window list no longer uses the taskbar's preview class in every
mode. A hidden window of that class shows only while previews are
open. Tiles without a frame yet show a soft placeholder instead of
text that flashed during the fade in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use aspect-aware DPI-scaled tiles with title icons, hover and active fills, and close buttons. Keep the Chromium signal scoped to the popup, fade the surface and thumbnails together, and refresh membership without rebuilding on title changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use popup alpha for the fade, cache the Chromium signal class, and refresh source sizes without replacing registrations. Share snapped bounds across drawing and hits, add close-button hover feedback, and reuse the dock bitmap cache for sharp fallback icons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Track size changes even inside tile-width clamps, and avoid redundant layered-alpha updates during ordinary paints.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Exercise physical-pixel tile and close-target boundaries, snapped image bounds, overflow exclusion and aspect-derived width limits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SumirSeth SumirSeth added this to the 0.9.1 milestone Nov 30, 2026
@SumirSeth SumirSeth added the enhancement New feature or request label Nov 30, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SumirSeth
SumirSeth merged commit 813c3cf into main Nov 30, 2026
1 check passed
@SumirSeth
SumirSeth deleted the feat/window-previews branch November 30, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants