Skip to content

Window occlusion state and event #74

Description

@lijy91

Apps sometimes need to know whether their window is actually visible to the user, not just shown but covered by other windows, for example to pause rendering or video.

Proposal: an occlusion state and event. macOS has it natively (NSWindow.occlusionState / NSWindowDidChangeOcclusionStateNotification); on Windows it can be approximated (DwmGetWindowAttribute(DWMWA_CLOAKED) plus a z-order/visible-region check), and on Linux via visibility-notify-event on X11 only.

Background:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions