Skip to content

Keep combined taskbar previews in tab order - #57

Merged
leafOfTree merged 2 commits into
masterfrom
taskbar-preview-order
Oct 10, 2026
Merged

leafOfTree merged 2 commits into
masterfrom
taskbar-preview-order

Conversation

@leafOfTree

Copy link
Copy Markdown
Owner

With Combine taskbar icons on, the taskbar previews of a Neovide or Alacritty group showed the newest tab first instead of last.

These apps join their group as "Neovide"/"Alacritty", leave it as untabbable a moment later and join again under the file's title. The removed preview was destroyed without UnregisterTab, and Explorer could register the returning preview after the order that places it.

  • Unregister a tab's preview before destroying it.
  • Send the preview order again 500 ms after it changes.
  • Free a closed tab's preview window, window class and pinned procedure when the tab goes, not when the whole group closes.
  • Unregister previews before the group's taskbar window is destroyed.
  • Send titles, positions and the active preview to Explorer only when they change.

Verified with real Neovide and Alacritty windows: before, the newest tab's preview came first; after, the previews match the tab order. GroupLifecycle checks that a preview that leaves and rejoins is ordered again, and that 20 such cycles leave no windows behind.

These windows join their group, leave it and join again as they start.
The returning preview could be registered by Explorer after the order that
places it and showed first. Previews are now unregistered before they are
destroyed, and a changed order is sent again once settled.
…anges

A preview window kept its window class and pinned procedure until its
whole group closed, so groups whose tabs come and go kept collecting them.
Previews are now unregistered before the group's taskbar window goes, and
titles, positions and the active preview are sent only when they change.
@leafOfTree
leafOfTree merged commit d041b5c into master Oct 10, 2026
2 checks passed
@leafOfTree
leafOfTree deleted the taskbar-preview-order branch October 10, 2026 12:27
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.

1 participant