Skip to content

总览:拖动缩略图调整虚拟桌面顺序 - #2

Merged
LiamZhaofor merged 3 commits into
LiamZhaofor:mainfrom
CBalaa:feat/overview-desktop-reorder
Nov 20, 2026
Merged

LiamZhaofor merged 3 commits into
LiamZhaofor:mainfrom
CBalaa:feat/overview-desktop-reorder

Conversation

@CBalaa

@CBalaa CBalaa commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

实现内容

  • 在总览顶部展开桌面条后,支持用鼠标拖动虚拟桌面缩略图,其他缩略图实时让位。
  • 松手后通过 IVirtualDesktopManagerInternal.MoveDesktop 调整系统真实桌面顺序,分别适配 Windows 11 23H2 与 24H2+ 的接口布局。
  • 桌面名称、当前桌面框和总览页面按桌面 ID 同步新顺序,四指横滑也按新顺序切换。
  • 支持取消与失败回退,并处理拖动期间与窗口拖动、翻页、点击及增删桌面的互斥。
  • 更新中英文 README。

Fixes #1

验证

  • 完整自动化测试套件:406 / 406 通过。
  • 完整解决方案构建:0 警告、0 错误。
  • 已由 Issue 提出者安装并进行真机验证。

CBalaa and others added 3 commits November 19, 2026 15:12
- 拖动时邻居按弹簧滑开让位,松手后缩略图飞进槽位;取消或系统排序失败时飞回原位
- 桌面条的框、名字与缩略图共用 DesktopBarReorder.Layout,修掉拖动中名字错位
- 只在合成层画桌面条时允许拖动(GDI 退路不按预览槽位画)
- 落定动画途中的三指手势直接跳到终点照常处理;系统已排好时,紧接着的一次翻页等桌面条按新顺序重建
- 拖动期间跳过的桌面条刷新在动画结束后补上;新增 DesktopReorderSettled 由宿主收尾

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
并行跑全部测试时偶尔多出几 KB 分配(d2fcd6e 上 40 次失败 1 次),单独跑从不失败,原因未查明;
放进 DisableParallelization 的集合后连跑 20 次未复现。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LiamZhaofor
LiamZhaofor merged commit 3435252 into LiamZhaofor:main Nov 20, 2026
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