Skip to content

[Win32] Window.Activated reports an activated state while minimized, and visibility ignores minimize/restore #26532

Open

Description

@MartinZikmund

Current behavior 🐛

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_SIZE SIZE_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) 🔬

  1. Log Window.Activated (WindowActivationState) and Window.VisibilityChanged.
  2. Minimize the window from the taskbar, click its taskbar button to restore it, and Alt+Tab away and back.
  3. Compare the sequence with a WinUI app.

Workaround 🛠️

None.

Affected platforms 📱💻🖥️

Skia Desktop (Windows)

Uno.Sdk version (and other relevant versions) 📦

7.0 (current master)

IDE version 🧑‍💻

N/A

Anything else we need to know? 💬

Related: #22658 (Linux). A fix is in progress.

Activity

  1. added
    kind/bug
    platform/win32 🪟
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugplatform/win32 🪟

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions