A new style desktop shell for Windows 11: menu bar, Dock, Finder, Spotlight, Control Center and Liquid Glass, in native C++.
Rust
Open Finder when the Dock group contains only Explorer windows
Eternity070628a4cc836e1dce
diff --git a/src/shell/dock.cpp b/src/shell/dock.cppindex 664d427..7f8ab94 100644--- a/src/shell/dock.cpp+++ b/src/shell/dock.cpp@@ -1738,6 +1738,15 @@ void LeftClick(int i) {}if (it.kind == I_APP) {App& a = apps::list[it.app];+ // O ícone também agrupa o Explorador, mas ele não substitui uma janela do Finder ao clicar.+ if (a.finder && std::none_of(a.wins.begin(), a.wins.end(), [](const AppWin& win) {+ wchar_t cls[32]{};+ return GetClassNameW(win.hwnd, cls, _countof(cls)) && !wcscmp(cls, L"ArquivosJanela");+ })) {+ OpenFinder(L"");+ ui::FrameClock(g_icons, WM_DOCKFRAME, true);+ return;+ }// o app já está na frente: o clique oculta (as janelas somem e voltam no próximo clique)HWND fg = GetForegroundWindow();HWND fgDono = fg ? GetAncestor(fg, GA_ROOTOWNER) : nullptr; // diálogo ou janela de ferramenta do app: vale a dona