Name
VisibilityNotify — xvisibility
When Generated
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.
Select With
This event is selected with
VisibilityChangeMask.
XEvent Structure Name
typedef union _XEvent {
...
XVisibilityEvent xvisibility;
...
} XEvent;Event Structure
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;Event Structure Members
stateA symbol indicating the final visibility status of the window:
VisibilityFullyObscured,VisibilityPartiallyObscured, orVisibilityUnobscured.
Notes
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. |
|
Viewable and completely unobscured, viewable and fully obscured, or not viewable. | Viewable and partially obscured. |
|
Viewable and completely ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access