A new style desktop shell for Windows 11: menu bar, Dock, Finder, Spotlight, Control Center and Liquid Glass, in native C++.
Rust
Rust source: sync to build-64.1 (Dock magnification stuck fix); publicar.ps1 -Tag for a fix-up of the same build
Eternity070628ba33d52d5021
diff --git a/rust-teste/shell/src/dock.rs b/rust-teste/shell/src/dock.rsindex 6a7ceb4..3ead756 100644--- a/rust-teste/shell/src/dock.rs+++ b/rust-teste/shell/src/dock.rs@@ -201,6 +201,8 @@ const POOF_MS: f64 = 420.0;const WM_DOCKFRAME: u32 = WM_APP + 40;const WM_DOCKSTACK: u32 = WM_APP + 43;const TIMER_HIDECHECK: usize = 7101;+/// confere se o ponteiro ainda está no Dock enquanto ele acha que está (a ampliação não fica presa)+const TIMER_SAIDA: usize = 7103;struct D {tile: f32,@@ -3013,6 +3015,9 @@ unsafe fn icons_proc_v(h: HWND, m: u32, w: WPARAM, l: LPARAM) -> LRESULT {}st.mouse_x = x;st.last_mouse_x = x;+ // o ponteiro pode sair sem WM_MOUSELEAVE (depois do clique com captura, ou o Dock descendo por baixo dele+ // quando um app abre e ele se esconde): a ampliação ficava enorme. Uma olhada a cada 150 ms resolve+ SetTimer(h, TIMER_SAIDA, 150, None);if animating() {ui::frame_clock(st.icons, WM_DOCKFRAME, true);}@@ -3164,6 +3169,29 @@ unsafe fn icons_proc_v(h: HWND, m: u32, w: WPARAM, l: LPARAM) -> LRESULT {}return LRESULT(0);}+ WM_TIMER if w.0 == TIMER_SAIDA => {+ if st.mouse_x < 0.0 {+ let _ = KillTimer(h, TIMER_SAIDA);+ return LRESULT(0);+ }+ if st.dragging || st.press >= 0 {+ return LRESULT(0);+ }+ let mut c = POINT::default();+ let _ = GetCursorPos(&mut c);+ let sob = WindowFromPoint(c);+ let fora = sob != h && GetAncestor(sob, GA_ROOT) != h;+ if fora || st.reveal < 0.5 {+ log!("dock: o ponteiro saiu sem aviso; a ampliação volta");+ let _ = KillTimer(h, TIMER_SAIDA);+ crate::previa::solta();+ st.mouse_x = -1.0;+ st.hover = -1;+ ui::frame_clock(st.icons, WM_DOCKFRAME, true);+ paint();+ }+ return LRESULT(0);+ }WM_TIMER if w.0 == TIMER_HIDECHECK => {if !st.autohide {let _ = KillTimer(h, TIMER_HIDECHECK);diff --git a/tools/publicar.ps1 b/tools/publicar.ps1index 053e29e..eededd4 100644--- a/tools/publicar.ps1+++ b/tools/publicar.ps1@@ -13,7 +13,7 @@# (rust-teste\build-rust.ps1 -Unica -Versao build-N, mesma pasta Programs\WacOS e mesmo atualizador do C++) e o# pacote leva os programas dela no lugar dos do C++ (a WacOSGancho.dll continua a do C++). Sem WacOS-Rust.zip e sem# WacOSTroca: não há mais duas edições. O atualizador de quem tem o C++ baixa este zip e troca os programas no lugar.-param([string]$Notas = '', [string]$RustDist = '', [switch]$SoRust)+param([string]$Notas = '', [string]$RustDist = '', [switch]$SoRust, [string]$Tag = '')$ErrorActionPreference = 'Stop'$root = Split-Path $PSScriptRoot -ParentSet-Location $root@@ -26,6 +26,7 @@ New-Item -ItemType Directory -Force (Join-Path $root 'dist') | Out-Null# o maior build-N + 1 (não a contagem: as builds 1 a 16 foram apagadas em 20/11/2026, na troca de licença)$n = (@(gh release list -R $repo --limit 1000 --json tagName --jq '.[].tagName' | Where-Object { $_ -match '^build-(\d+)$' } | ForEach-Object { [int]($_ -replace '^build-', '') }) + @(17) | Measure-Object -Maximum).Maximum + 1$tag = "build-$n"+if ($Tag) { $tag = $Tag } # correção na mesma build (ex.: build-64.1): o atualizador compara o nome inteirogit push -q origin main 2>&1 | Out-Null$sha = (git rev-parse HEAD).Trim()L "versão: $tag ($sha)"