A VisibilityNotify event reports any change in the visibility of the specified window. This event type is never generated on windows whose class is InputOnly. All of the window's subwindows are ignored when calculating the visibility of the window.
typedef struct { int type; unsigned long serial; /* # of last request processed by server */ Bool send_event; /* True if this came from SendEvent request */ Display *display; /* Display the event was read from */ Window window; int state; /* VisibilityFullyObscured, VisibilityPartiallyObscured, VisibilityUnobscured */ } XVisibilityEvent; |
state | A symbol indicating the final visibility status of the window: VisibilityFullyObscured, VisibilityPartiallyObscured, or VisibilityUnobscured. |
Table E-5 lists the transitions that generate VisibilityNotify events and the corresponding state member of the XVisibilityEvent structure.
Table E-5. State Element of the XVisibilityEvent Structure
Visibility Status Before | Visibility Status After | State Member |
---|---|---|
Partially obscured, fully obscured, or not viewable | Viewable and completely unobscured | VisibilityUnobscured |
Viewable and completely unobscured,viewable and fully obscured,or not viewable | Viewable and partially obscured | VisibilityPartially- Obscured |
Viewable and completely unobscured, viewable and partially obscured,or not viewable | Viewable and partially obscured | VisibilityPartially- Obscured |