You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Win32] Window.Activated reports an activated state while minimized, and visibility ignores minimize/restore #26532
On the Skia Win32 host, WM_ACTIVATE sets the window to CodeActivated / PointerActivated even while it's minimized (HIWORD(wParam) != 0). So Window.Activated reports an activated state for a window that isn't visible. Window visibility (Window.Visible, VisibilityChanged) also isn't updated from WM_SIZESIZE_MINIMIZED / SIZE_RESTORED / SIZE_MAXIMIZED.
Expected behavior 🎯
As in WinUI (DesktopWindowImpl::OnActivate), non-deactivated activation events are suppressed while the window is minimized, and Visible / VisibilityChanged follow minimize/restore.
How to reproduce it (as minimally and precisely as possible) 🔬
Log Window.Activated (WindowActivationState) and Window.VisibilityChanged.
Minimize the window from the taskbar, click its taskbar button to restore it, and Alt+Tab away and back.
Activity