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

state

A symbol indicating the final visibility status of the window: VisibilityFullyObscured, VisibilityPartiallyObscured, or VisibilityUnobscured.

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.

VisibilityUnobscured

Viewable and completely unobscured, viewable and fully obscured, or not viewable.

Viewable and partially obscured.

VisibilityPartiallyObscured

Viewable and completely ...

Get XLIB Programming Manual, Rel. 5, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.