A new style desktop shell for Windows 11: menu bar, Dock, Finder, Spotlight, Control Center and Liquid Glass, in native C++.
Rust
Own-title-bar: no double repaint on focus changes and resizes
Eternity070628f146619231e9
diff --git a/docs/registro-mudancas.txt b/docs/registro-mudancas.txtindex ee11bde..7e9b343 100644--- a/docs/registro-mudancas.txt+++ b/docs/registro-mudancas.txt@@ -1217,3 +1217,7 @@ Compilado (tudo), instalado, Shell e reserva do Finder reiniciados às 23:07 sem- Animações: src\shell\ui.cpp, um quadro por vez na fila (o mouse e o teclado não ficam atrás dos quadros a 174 Hz); Quick Look, Time Machine e a prévia do encaixe saíram do timer de 15,6 ms para o relógio da tela.Conferido instalado: 200 s de caça nos apps reais com 0 paradas (disco calmo nesse período); Spotlight, abrir tarefa, lista da bandeja. NÃO conferido na tela: Quick Look, Time Machine, prévia do encaixe; taxa de quadros não medida.DESFAZER: reverter o commit.++[2026-11-22 17:51, hora do PC] Barra própria: sem trabalho em dobro ao trocar o foco e redimensionar.+ - src\janelas\macjanela.cpp: só mudar de ordem não repinta a faixa; no tamanho, faixa e sombra uma vez por passo. Electron de teste: mover 0,7 ms, redimensionar 8,6, foco 10,2 (mediana); sem a barra 0,4 / 1,3 / 1,8. Cantos: 0 pixels com cor velha nas sete fases.+ DESFAZER: reverter o commit.diff --git a/src/janelas/macjanela.cpp b/src/janelas/macjanela.cppindex d4a4f5d..3a352ba 100644--- a/src/janelas/macjanela.cpp+++ b/src/janelas/macjanela.cpp@@ -2430,6 +2430,13 @@ LRESULT CALLBACK OwnerProc(HWND h, UINT m, WPARAM w, LPARAM l, UINT_PTR, DWORD_Pif (!(wp->flags & SWP_NOZORDER)) KeepAbove(in);return r;}+ // barra própria só mudando de ordem (cada troca de foco): a faixa é filha e já veio junto. Repintar aqui e+ // de novo no WM_NCACTIVATE custava ~14 ms na thread do app a cada clique na janela+ if (in->custom && in->filho && (wp->flags & SWP_NOSIZE) && !dx && !dy &&+ !(wp->flags & (SWP_SHOWWINDOW | SWP_HIDEWINDOW | SWP_FRAMECHANGED)) && IsWindowVisible(in->overlay)) {+ if (!(wp->flags & SWP_NOZORDER)) { UpdateShadow(in); KeepAbove(in); }+ return r;+ }}ApplyRegion(in); PlaceOverlay(in); UpdateShadow(in);if (!(((WINDOWPOS*)l)->flags & SWP_NOZORDER)) KeepAbove(in);@@ -2462,7 +2469,10 @@ LRESULT CALLBACK OwnerProc(HWND h, UINT m, WPARAM w, LPARAM l, UINT_PTR, DWORD_Pcase WM_SIZE: {LRESULT r = DefSubclassProc(h, m, w, l);if (w == SIZE_MAXIMIZED && g_msgZoom) PostMessageW(h, g_msgZoom, 1, 0); // depois desta mensagem: vira "ampliar"- if (in->custom) in->layoutAt = 0; // a barra do app se rearruma no tamanho novo: mede de novo+ if (in->custom) {+ in->layoutAt = 0; // a barra do app se rearruma no tamanho novo: mede de novo+ return r; // faixa e sombra: o WM_WINDOWPOSCHANGED, que chama este, já refaz (eram duas vezes por passo)+ }ApplyRegion(in);PlaceOverlay(in);UpdateShadow(in);