A new style desktop shell for Windows 11: menu bar, Dock, Finder, Spotlight, Control Center and Liquid Glass, in native C++.
Rust
Issues and PRs of Nov 28: Apple Music art, zh strings, Qt/game apps out of the DLL, accent strip, CJK fallback, startup apps
Eternity0706285c1efd7b592c
diff --git a/docs/registro-mudancas.txt b/docs/registro-mudancas.txtindex 67dcfae..c00a7e0 100644--- a/docs/registro-mudancas.txt+++ b/docs/registro-mudancas.txt@@ -2085,3 +2085,16 @@ Compilado (tudo), instalado, Shell e reserva do Finder reiniciados às 23:07 semPecoFence/Fences ficam ali), e o PecoFence subia de volta: as duas piscando sem fim. mesa.cpp: só volta para cimaquando a nossa mesa ficou ABAIXO da do Explorador (Win+D...). Compilado (build.cmd shell), não instalado.DESFAZER: voltar a condição para GetWindow(ed, GW_HWNDPREV) != p->h em mesa.cpp e compilar.+[2026-11-28 12:10] Issues e PRs de 28/11:+ - PR #223 (issue #218): Ilha, capa do álbum um disco atrasada no Apple Music (ilha.cpp; aplicado como veio).+ - PR #232: chinês simplificado, 165 textos (idioma_zh.inc).+ - PRs #224 e #225 + issues #195/#197: Premiere Pro, VLC e GeForce NOW fora da DLL das janelas (janelas.cpp+ EXCLUDED_EXE). Juntei os dois PRs à mão (mexiam na mesma linha).+ - Issue #235: Finder e Ajustes com DWMWA_CAPTION_COLOR = nenhuma (ou a cor da barra lateral, se o Windows recusar):+ com a cor de destaque nas barras de título ligada no Windows, o topo da barra lateral ficava azul. Não testado+ (no PC a opção está desligada).+ - Issue #234: fonte_cjk.h registra as listas CJK sem idioma (o DirectWrite só usava com o texto no mesmo idioma).+ - Issue #207: com o Explorador no fundo (padrão) o Shell não roda mais os apps de inicialização: o Explorador que o+ Shell abre como shell já roda (abriam duas vezes).+ Compilado (build.cmd e build.cmd janelas). Não instalado.+ DESFAZER: reverter o commit e compilar (build.cmd e build.cmd janelas).diff --git a/src/ajustes/main.cpp b/src/ajustes/main.cppindex 6e1ba4a..ca24415 100644--- a/src/ajustes/main.cpp+++ b/src/ajustes/main.cpp@@ -1936,6 +1936,12 @@ void ApplyWindowTheme() {shadow::SetRadius(0);COLORREF border = g_dark ? RGB(88, 88, 92) : RGB(196, 196, 200);DwmSetWindowAttribute(g_hwnd, 34 /*DWMWA_BORDER_COLOR*/, &border, sizeof(border));+ // issue #235: sem a cor de destaque do Windows no topo da barra lateral (ver o mesmo trecho no Finder)+ COLORREF semBarra = 0xFFFFFFFE; // DWMWA_COLOR_NONE+ if (FAILED(DwmSetWindowAttribute(g_hwnd, 35 /*DWMWA_CAPTION_COLOR*/, &semBarra, sizeof(semBarra)))) {+ COLORREF lateral = g_dark ? RGB(0x2D, 0x2D, 0x2F) : RGB(0xE9, 0xE9, 0xEA);+ DwmSetWindowAttribute(g_hwnd, 35, &lateral, sizeof(lateral));+ }int backdrop = 3; // DWMSBT_TRANSIENTWINDOW: acrílico do sistema na barra lateralDwmSetWindowAttribute(g_hwnd, 38 /*DWMWA_SYSTEMBACKDROP_TYPE*/, &backdrop, sizeof(backdrop));}diff --git a/src/comum/fonte_cjk.h b/src/comum/fonte_cjk.hindex f56ffea..8aa9fee 100644--- a/src/comum/fonte_cjk.h+++ b/src/comum/fonte_cjk.h@@ -70,11 +70,14 @@ inline IDWriteFontFallback* Fallback(IDWriteFactory* factory) {// ideogramas, pontuação CJK e formas de largura cheia: a fonte do idioma do WacOSconst DWRITE_UNICODE_RANGE han[] = {{ 0x3000, 0x303F }, { 0x3400, 0x4DBF }, { 0x4E00, 0x9FFF }, { 0xF900, 0xFAFF }, { 0xFF00, 0xFF65 }, { 0xFFE0, 0xFFEF } };- b->AddMapping(hangul, ARRAYSIZE(hangul), kr.data(), (UINT32)kr.size(), nullptr, L"ko-KR", nullptr, 1.0f);- b->AddMapping(kana, ARRAYSIZE(kana), jp.data(), (UINT32)jp.size(), nullptr, L"ja-JP", nullptr, 1.0f);- if (ko) b->AddMapping(han, ARRAYSIZE(han), kr.data(), (UINT32)kr.size(), nullptr, L"ko-KR", nullptr, 1.0f);- else if (ja) b->AddMapping(han, ARRAYSIZE(han), jp.data(), (UINT32)jp.size(), nullptr, L"ja-JP", nullptr, 1.0f);- else if (zh) b->AddMapping(han, ARRAYSIZE(han), cn.data(), (UINT32)cn.size(), nullptr, L"zh-CN", nullptr, 1.0f);+ // sem idioma no mapeamento (issue #234, Beicxxxx): o DirectWrite só usa um mapeamento com idioma quando o texto+ // tem esse mesmo idioma, e os formatos de texto são criados com "pt-br"/"" : as listas daqui eram ignoradas+ // em quase todas as janelas. A escolha do idioma já foi feita acima (qual lista vai para o han).+ b->AddMapping(hangul, ARRAYSIZE(hangul), kr.data(), (UINT32)kr.size(), nullptr, nullptr, nullptr, 1.0f);+ b->AddMapping(kana, ARRAYSIZE(kana), jp.data(), (UINT32)jp.size(), nullptr, nullptr, nullptr, 1.0f);+ if (ko) b->AddMapping(han, ARRAYSIZE(han), kr.data(), (UINT32)kr.size(), nullptr, nullptr, nullptr, 1.0f);+ else if (ja) b->AddMapping(han, ARRAYSIZE(han), jp.data(), (UINT32)jp.size(), nullptr, nullptr, nullptr, 1.0f);+ else if (zh) b->AddMapping(han, ARRAYSIZE(han), cn.data(), (UINT32)cn.size(), nullptr, nullptr, nullptr, 1.0f);if (SUCCEEDED(f2->GetSystemFontFallback(&sys)) && sys) b->AddMappings(sys); // o resto: a reserva do Windowsb->CreateFontFallback(&fb);}diff --git a/src/comum/idioma_zh.inc b/src/comum/idioma_zh.incindex 4e3b924..36388bf 100644--- a/src/comum/idioma_zh.inc+++ b/src/comum/idioma_zh.inc@@ -428,6 +428,9 @@{ L" mudança", L" 项更改" },{ L" mudanças", L" 项更改" },{ L"Avisar quando houver atualização", L"有更新时通知我" },+{ L"Instalar atualizações automaticamente", L"自动安装更新" },+{ L"Quando sai uma versão nova no GitHub, o WacOS baixa e instala sozinho, mantendo seus ajustes. Ele fecha e abre de novo para aplicar.", L"GitHub 上有新版本时,WacOS 会自动下载并安装,并保留你的设置。它会关闭并重新打开以完成更新。" },+{ L"está sendo instalada automaticamente. O WacOS fecha e abre de novo para aplicar.", L"正在自动安装。WacOS 会关闭并重新打开以完成更新。" },{ L"O WacOS confere o GitHub ao entrar e a cada 6 horas e mostra uma notificação quando sai uma versão nova.", L"WacOS 会在登录时以及每 6 小时检查一次 GitHub,并在有新版本时显示通知。" },{ L"Se o vidro ficar fosco, preto ou parado, refaz o Liquid Glass sem reiniciar o Shell.", L"如果玻璃变成磨砂、黑色或卡住,将在不重新启动 Shell 的情况下重建 Liquid Glass。" },{ L"Nenhum", L"无" },@@ -1799,3 +1802,165 @@{ L"Ligue a edição do WacOS reescrita em Rust em Ajustes do Sistema > Experimental > BETA-TEST. Ela ainda está em teste e dá para voltar para esta edição a qualquer momento.", L"在“系统设置 > 实验性功能 > BETA-TEST”中打开用 Rust 重写的 WacOS 版本。它仍在测试中,你可以随时切换回此版本。" },{ L"Abrir Ajustes", L"打开设置" },{ L"Agora não", L"以后再说" },+{ L"Mission Control", L"调度中心" },+{ L"Launchpad", L"启动台" },+{ L"Night Shift", L"夜览" },+{ L"Night Shift…", L"夜览…" },+{ L"Time Machine|Time Machine", L"时间机器" },+{ L"Tentar Novamente", L"重试" },+{ L" byte", L" 字节" },+{ L" bytes", L" 字节" },+{ L" bytes (", L" 字节(" },+{ L" item", L" 个项目" },+{ L"Threads:", L"线程:" },+{ L"Total:", L"总计:" },+{ L"(pid ", L"(PID" },+{ L"” (PID ", L"”(PID" },+{ L"São Paulo", L"圣保罗" },+{ L"Rio de Janeiro", L"里约热内卢" },+{ L"Manaus", L"马瑙斯" },+{ L"Los Angeles", L"洛杉矶" },+{ L"Denver", L"丹佛" },+{ L"Chicago", L"芝加哥" },+{ L"Bogotá", L"波哥大" },+{ L"Buenos Aires", L"布宜诺斯艾利斯" },+{ L"Santiago", L"圣地亚哥" },+{ L"Honolulu", L"檀香山" },+{ L"Paris", L"巴黎" },+{ L"Cairo", L"开罗" },+{ L"Dubai", L"迪拜" },+{ L"Mumbai", L"孟买" },+{ L"Sydney", L"悉尼" },+{ L"Auckland", L"奥克兰" },+{ L"Cupertino", L"库比蒂诺" },+{ L"Celsius", L"摄氏度" },+{ L"Fahrenheit", L"华氏度" },+{ L"Kelvin", L"开尔文" },+{ L"Acres", L"英亩" },+{ L"Hectares", L"公顷" },+{ L"Stones", L"英石" },+{ L"Bits", L"位" },+{ L"Bytes", L"字节" },+{ L"Kilobytes", L"千字节" },+{ L"Megabytes", L"兆字节" },+{ L"Gigabytes", L"吉字节" },+{ L"Terabytes", L"太字节" },+{ L"Kibibytes", L"千比字节" },+{ L"Mebibytes", L"兆比字节" },+{ L"Gibibytes", L"吉比字节" },+{ L"JAN", L"1月" },+{ L"FEV", L"2月" },+{ L"MAR", L"3月" },+{ L"ABR", L"4月" },+{ L"MAI", L"5月" },+{ L"JUN", L"6月" },+{ L"JUL", L"7月" },+{ L"AGO", L"8月" },+{ L"SET", L"9月" },+{ L"OUT", L"10月" },+{ L"NOV", L"11月" },+{ L"DEZ", L"12月" },+{ L"Configurações do Windows|Windows Settings", L"Windows 设置" },+{ L"Gerenciador de Dispositivos|Device Manager", L"设备管理器" },+{ L"Adicionar ou remover programas|Add or remove programs", L"添加或删除程序" },+{ L"Programas e Recursos|Programs and Features", L"程序和功能" },+{ L"Painel de Controle|Control Panel", L"控制面板" },+{ L"Gerenciamento de Disco|Disk Management", L"磁盘管理" },+{ L"Serviços|Services", L"服务" },+{ L"Gerenciamento do Computador|Computer Management", L"计算机管理" },+{ L"Visualizador de Eventos|Event Viewer", L"事件查看器" },+{ L"Agendador de Tarefas|Task Scheduler", L"任务计划程序" },+{ L"Gerenciador de Tarefas do Windows|Windows Task Manager", L"任务管理器" },+{ L"Editor do Registro|Registry Editor", L"注册表编辑器" },+{ L"Editor de Política de Grupo|Edit Group Policy", L"编辑组策略" },+{ L"Configuração do Sistema|System Configuration", L"系统配置" },+{ L"Informações do Sistema|System Information", L"系统信息" },+{ L"Monitor de Recursos|Resource Monitor", L"资源监视器" },+{ L"Monitor de Desempenho|Performance Monitor", L"性能监视器" },+{ L"Limpeza de Disco|Disk Cleanup", L"磁盘清理" },+{ L"Desfragmentar e Otimizar Unidades|Defragment and Optimize Drives", L"碎片整理和优化驱动器" },+{ L"Diagnóstico de Memória|Windows Memory Diagnostic", L"Windows 内存诊断" },+{ L"Diagnóstico do DirectX|DirectX Diagnostic Tool", L"DirectX 诊断工具" },+{ L"Versão do Windows|About Windows", L"关于 Windows" },+{ L"Mapa de Caracteres|Character Map", L"字符映射表" },+{ L"Propriedades do Sistema|System Properties", L"系统属性" },+{ L"Variáveis de Ambiente|Environment Variables", L"环境变量" },+{ L"Ponto de Restauração|System Restore Point", L"系统还原点" },+{ L"Opções de Desempenho|Performance Options", L"性能选项" },+{ L"Conexões de Rede|Network Connections", L"网络连接" },+{ L"Painel de Som|Sound Control Panel", L"声音控制面板" },+{ L"Propriedades do Mouse|Mouse Properties", L"鼠标属性" },+{ L"Propriedades da Internet|Internet Options", L"Internet 选项" },+{ L"Data e Hora clássico|Date and Time control panel", L"日期和时间(控制面板)" },+{ L"Opções de Energia|Power Options", L"电源选项" },+{ L"Região clássico|Region control panel", L"区域(控制面板)" },+{ L"Controladores de Jogo|Game Controllers", L"游戏控制器" },+{ L"Firewall do Windows|Windows Firewall", L"Windows 防火墙" },+{ L"Dispositivos e Impressoras|Devices and Printers", L"设备和打印机" },+{ L"Conexão de Área de Trabalho Remota|Remote Desktop Connection", L"远程桌面连接" },+{ L"Recursos do Windows|Turn Windows features on or off", L"启用或关闭 Windows 功能" },+{ L"Windows Update|Windows Update", L"Windows 更新" },+{ L"Histórico de atualizações|Update history", L"更新历史记录" },+{ L"Sobre o PC|About your PC", L"关于你的电脑" },+{ L"Configurações de Tela|Display settings", L"显示设置" },+{ L"Tela avançada|Advanced display", L"高级显示" },+{ L"Gráficos|Graphics settings", L"图形设置" },+{ L"Luz noturna|Night light", L"夜间模式" },+{ L"Configurações de Som|Sound settings", L"声音设置" },+{ L"Misturador de Volume|Volume mixer", L"音量合成器" },+{ L"Notificações do Windows|Windows notifications", L"Windows 通知" },+{ L"Energia e Suspensão|Power and sleep", L"电源和睡眠" },+{ L"Armazenamento|Storage settings", L"存储设置" },+{ L"Discos e Volumes|Disks and volumes", L"磁盘和卷" },+{ L"Multitarefa|Multitasking", L"多任务处理" },+{ L"Para Desenvolvedores|For developers", L"开发者选项" },+{ L"Ativação|Activation", L"激活" },+{ L"Solução de Problemas|Troubleshoot", L"疑难解答" },+{ L"Recuperação|Recovery", L"恢复" },+{ L"Área de Transferência|Clipboard settings", L"剪贴板设置" },+{ L"Área de Trabalho Remota|Remote Desktop settings", L"远程桌面设置" },+{ L"Dispositivos Bluetooth|Bluetooth devices", L"蓝牙设备" },+{ L"Dispositivos conectados|Connected devices", L"已连接的设备" },+{ L"Configurações de Impressoras|Printers and scanners", L"打印机和扫描仪" },+{ L"Configurações do Mouse|Mouse settings", L"鼠标设置" },+{ L"Configurações do Touchpad|Touchpad settings", L"触摸板设置" },+{ L"Digitação|Typing settings", L"输入设置" },+{ L"Reprodução Automática|AutoPlay settings", L"自动播放设置" },+{ L"Status da Rede|Network status", L"网络状态" },+{ L"Configurações de Wi-Fi|Wi-Fi settings", L"WLAN 设置" },+{ L"Ethernet|Ethernet settings", L"以太网设置" },+{ L"VPN|VPN settings", L"VPN 设置" },+{ L"Proxy|Proxy settings", L"代理设置" },+{ L"Hotspot Móvel|Mobile hotspot", L"移动热点" },+{ L"Modo Avião|Airplane mode", L"飞行模式" },+{ L"Personalização|Personalization", L"个性化" },+{ L"Plano de Fundo do Windows|Windows background", L"Windows 背景" },+{ L"Cores do Windows|Windows colors", L"Windows 颜色" },+{ L"Temas do Windows|Windows themes", L"Windows 主题" },+{ L"Fontes|Fonts", L"字体" },+{ L"Aplicativos Padrão|Default apps", L"默认应用" },+{ L"Aplicativos de Inicialização|Startup apps", L"启动应用" },+{ L"Recursos Opcionais|Optional features", L"可选功能" },+{ L"Suas Informações|Your info", L"你的信息" },+{ L"Opções de Entrada|Sign-in options", L"登录选项" },+{ L"Outros Usuários|Other users", L"其他用户" },+{ L"Data e Hora|Date and time settings", L"日期和时间设置" },+{ L"Idioma e Região|Language and region", L"语言和区域" },+{ L"Modo de Jogo do Windows|Windows Game Mode", L"Windows 游戏模式" },+{ L"Tamanho do Texto|Text size", L"文本大小" },+{ L"Efeitos Visuais|Visual effects", L"视觉效果" },+{ L"Privacidade do Windows|Windows privacy", L"Windows 隐私" },+{ L"Permissão da Câmera|Camera privacy", L"相机隐私" },+{ L"Permissão do Microfone|Microphone privacy", L"麦克风隐私" },+{ L"Permissão de Localização|Location privacy", L"位置隐私" },+{ L"Criptografia do Dispositivo|Device encryption", L"设备加密" },+{ L"Finder", L"访达" },+{ L"Downloads", L"下载" },+{ L"Dock", L"程序坞" },+{ L"Terminal", L"终端" },+{ L"Threads", L"线程" },+{ L"%.0f bytes", L"%.0f 字节" },+{ L"Ethernet", L"以太网" },+{ L"Zoom", L"缩放" },+{ L"Web", L"网页" },+{ L"Normal", L"常规" },diff --git a/src/finder/main.cpp b/src/finder/main.cppindex e011c2e..76d73e5 100644--- a/src/finder/main.cpp+++ b/src/finder/main.cpp@@ -6413,6 +6413,14 @@ static void ApplyWindowTheme() {shadow::SetRadius(0);COLORREF border = g_dark ? RGB(88, 88, 92) : RGB(196, 196, 200); // borda fina e clara, como no MacDwmSetWindowAttribute(g_hwnd, 34 /*DWMWA_BORDER_COLOR*/, &border, sizeof(border));+ // issue #235: com "Mostrar a cor de destaque nas barras de título" do Windows ligado, o DWM pintava o topo da barra+ // lateral (atrás dos semáforos) com a cor de destaque na janela ativa. Sem cor de barra: o acrílico fica igual+ // em cima e embaixo, como no Mac. Se o Windows recusar o "nenhuma", a cor da barra lateral.+ COLORREF semBarra = 0xFFFFFFFE; // DWMWA_COLOR_NONE+ if (FAILED(DwmSetWindowAttribute(g_hwnd, 35 /*DWMWA_CAPTION_COLOR*/, &semBarra, sizeof(semBarra)))) {+ COLORREF lateral = g_dark ? RGB(0x2D, 0x2D, 0x2F) : RGB(0xE9, 0xE9, 0xEA);+ DwmSetWindowAttribute(g_hwnd, 35, &lateral, sizeof(lateral));+ }// Acrílico do sistema, sem tinta extra nossa: é o mais transparente que dá. O desfoque antigo// (SetWindowCompositionAttribute) foi testado com tinta e flag de gradiente: o DWM o desenha// POR CIMA do conteúdo DirectComposition, apagando texto e ícones. Descartado.diff --git a/src/shell/ilha.cpp b/src/shell/ilha.cppindex 6c330f9..025b79f 100644--- a/src/shell/ilha.cpp+++ b/src/shell/ilha.cpp@@ -153,6 +153,7 @@ struct Media {std::mutex g_mmx;std::condition_variable g_mcv;Media g_md;+uint64_t g_artHash; // a capa na tela (sob g_mmx): reconhece a da faixa anterior chegando atrasada (issue #218)bool g_mWake, g_mRebind;struct Cmd { int c; double v; };std::vector<Cmd> g_cmds; // 1 tocar/pausar, 2 próxima, 3 anterior, 4 aleatório (v), 5 posição (v s)@@ -240,6 +241,13 @@ bool DecodeThumb(const wmc::GlobalSystemMediaTransportControlsSessionMediaProperreturn ok;}+// FNV-1a dos pixels: diz se a capa que o app mandou é a mesma que já está na ilha+uint64_t HashArt(const std::vector<BYTE>& px) {+ uint64_t h = 14695981039346656037ull;+ for (BYTE b : px) { h ^= b; h *= 1099511628211ull; }+ return h;+}+// cor das barrinhas e do tempo restante: a média da capa, viva e clara o bastante para aparecer no pretoD2D1_COLOR_F ArtTint(const std::vector<BYTE>& px) {double r = 0, g = 0, b = 0, n = 0;@@ -293,12 +301,17 @@ void MediaThread() {mgr.SessionsChanged([](auto&&, auto&&) { MediaWake(true); }); // app de mídia abriu/fechou (Spotify...)} catch (...) { Log(L"ilha: sem acesso aos controles de mídia do Windows"); return; }std::wstring lastKey;+ int artRetry = 0; // capa atrasada: quantas vezes já esperou a da faixa nova+ bool retrySoon = false; // acorda em instantes para tentar a capa de novofor (;;) {bool rebind; std::vector<Cmd> cmds;{std::unique_lock<std::mutex> l(g_mmx);// nada tocando: olha de novo a cada 2 s (outro app pode ter começado a tocar sem virar a sessão "atual")- if (g_md.playing) g_mcv.wait(l, [] { return g_mWake; });+ if (g_md.playing) {+ if (retrySoon) { retrySoon = false; g_mcv.wait_for(l, std::chrono::milliseconds(700), [] { return g_mWake; }); }+ else g_mcv.wait(l, [] { return g_mWake; });+ }else if (!g_mcv.wait_for(l, std::chrono::seconds(2), [] { return g_mWake; })) g_mRebind = true;g_mWake = false; rebind = g_mRebind; g_mRebind = false; cmds.swap(g_cmds);}@@ -357,19 +370,36 @@ void MediaThread() {out.pos = std::clamp(pos, 0.0, std::max(out.len, 0.0));out.at = anim::Now();std::wstring key = out.title + L"\x1f" + out.artist + L"\x1f" + out.aumid;- bool needArt;- { std::lock_guard<std::mutex> l(g_mmx); needArt = key != lastKey || g_md.art.empty(); }+ bool newTrack = key != lastKey;+ bool artEmpty; uint64_t curHash;+ { std::lock_guard<std::mutex> l(g_mmx); artEmpty = g_md.art.empty(); curHash = g_artHash; }+ bool needArt = newTrack || artEmpty;+ bool settled = !needArt; // a capa desta faixa já está valendo+ uint64_t newHash = 0;if (out.has && needArt) {std::vector<BYTE> px; UINT w = 0, h = 0;bool thumb = (bool)p.Thumbnail();- if (DecodeThumb(p, px, w, h)) { out.tint = ArtTint(px); out.art = std::move(px); out.aw = w; out.ah = h; }- else if (key != lastKey) Log(L"ilha: '%ls' sem capa (%ls)", out.title.c_str(), thumb ? L"não decodificou" : L"o app não mandou");+ if (DecodeThumb(p, px, w, h)) {+ newHash = HashArt(px);+ if (newTrack && !artEmpty && newHash == curHash && artRetry < 8) {+ // a faixa mudou mas o app ainda manda a capa da anterior (Apple Music, issue #218):+ // não grava essa nem trava a faixa — tenta de novo no próximo aviso+ artRetry++; retrySoon = true;+ } else {+ out.tint = ArtTint(px); out.art = std::move(px); out.aw = w; out.ah = h;+ settled = true; artRetry = 0;+ }+ } else {+ if (newTrack) Log(L"ilha: '%ls' sem capa (%ls)", out.title.c_str(), thumb ? L"não decodificou" : L"o app não mandou");+ settled = true; artRetry = 0;+ }}std::lock_guard<std::mutex> l(g_mmx);- if (out.has && needArt && (!out.art.empty() || key != lastKey)) { // faixa nova (ou a capa chegou depois)+ if (out.has && settled && needArt) { // faixa nova (ou a capa chegou depois)g_md.art = std::move(out.art); g_md.aw = out.aw; g_md.ah = out.ah; g_md.tint = out.tint; g_md.artGen++;+ g_artHash = newHash; // 0 quando a faixa nova não tem capa: a da anterior não vale mais}- if (out.has) lastKey = key;+ if (out.has && settled) lastKey = key; // só trava a faixa com a capa resolvidag_md.has = out.has; g_md.playing = out.playing; g_md.shuffle = out.shuffle; g_md.canShuffle = out.canShuffle;g_md.title = out.title; g_md.artist = out.artist; g_md.aumid = out.aumid;g_md.pos = out.pos; g_md.len = out.len; g_md.start = out.start; g_md.at = out.at;diff --git a/src/shell/janelas.cpp b/src/shell/janelas.cppindex d9949d7..b936b6b 100644--- a/src/shell/janelas.cpp+++ b/src/shell/janelas.cpp@@ -34,8 +34,13 @@ std::map<DWORD, Permissao> g_procOk; // processo -> permitido (chromium: Chromiustd::vector<std::wstring> g_extra; // exclusões do usuárioconst UINT HOST_HOOK = WM_APP + 1, HOST_QUIT = WM_APP + 2;-// Jogos, launchers, anti-cheat e partes do próprio Windows: nunca recebem a DLL+// Jogos, launchers, anti-cheat, partes do próprio Windows e apps cuja janela a DLL quebra: nunca recebem a DLLconst wchar_t* EXCLUDED_EXE[] = {+ // apps Qt e de jogo cuja janela a DLL quebra (PRs #224 e #225 do 404-Page-Found, 28/11/2026):+ // Premiere Pro (issue #219): atalhos de teclado (espaço, Ctrl+S) e o fechar da barra paravam;+ // VLC (issue #220): barra quebrada e o duplo clique não ia para a tela cheia com a janela pequena;+ // GeForce NOW (issues #195 e #197): os botões do Windows apareciam na barra e o jogo abria numa janela pequena+ L"adobe premiere pro.exe", L"vlc.exe", L"geforcenow.exe",L"explorer.exe", L"dwm.exe", L"shell.exe", L"arquivos.exe", L"ajustes.exe", L"monitoratividade.exe", L"terminal.exe", L"calculadora.exe", L"notas.exe",L"wacosshell.exe", L"wacosfinder.exe", L"wacossettings.exe", L"wacosactivitymonitor.exe", L"wacosterminal.exe", L"wacoscalculator.exe", L"wacosnotes.exe", L"wacoswindow32host.exe", L"searchhost.exe", L"startmenuexperiencehost.exe",L"snippingtool.exe", L"screenclippinghost.exe", // Ferramenta de Captura (gravação de tela parava: prints do Discord, 19/11/2026)diff --git a/src/shell/mesa.cpp b/src/shell/mesa.cppindex fd5af8c..31a7a60 100644--- a/src/shell/mesa.cpp+++ b/src/shell/mesa.cpp@@ -2126,6 +2126,11 @@ bool mesa::IsWindowsShell() { return WinlogonIsOurs(); }void mesa::RunStartupApps() {if (!WinlogonIsOurs()) return;if (shell::Setting(L"explorer", L"") == L"1") { Log(L"inicialização: explorer=1 (o Explorador abre os apps)"); return; }+ // Explorador no fundo (o padrão, ajuste vazio ou "fundo"; e o nativo): o Shell abre o explorer.exe como shell do+ // Windows logo depois (StartExplorer troca o Winlogon por uns segundos), e ele mesmo roda Run e Inicializar. Rodar+ // aqui também abria cada app duas vezes (issue #207: SuperCopier, LocalSend, AMD Software, OneDrive)+ { std::wstring ex = shell::Setting(L"explorer", L"");+ if (ex.empty() || ex == L"fundo" || shell::nativo) { Log(L"inicialização: Explorador no fundo (ele abre os apps)"); return; } }if (GlobalFindAtomW(L"SequoiaShellInicializacao")) { Log(L"inicialização: já rodou nesta sessão"); return; }GlobalAddAtomW(L"SequoiaShellInicializacao");if (g_explorerAtStart) { Log(L"inicialização: o Explorador já estava aberto (ele abriu os apps)"); return; }