Name

CreateNotify — xcreatewindow

When Generated

A CreateNotify event reports when a window is created.

Select With

This event is selected on children of a window by specifying the parent window ID with SubstructureNotifyMask. (Note that this event type cannot be selected by StructureNotifyMask.)

XEvent Structure Name

typedef union _XEvent {
    ...
    XCreateWindowEvent xcreatewindow;
    ...
} 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 parent;           /* parent of the window */
    Window window;           /* window ID of window created */
    int x, y;                /* window location */
    int width, height;       /* size of window */
    int border_width;        /* border width */
    Bool override_redirect;  /* creation should be overridden */
} XCreateWindowEvent;

Event Structure Members

parent

The ID of the created window’s parent.

window

The ID of the created window.

x, y

The coordinates of the created window relative to its parent.

width, height

The width and height in pixels of the created window.

border_width

The width in pixels of the border of the created window.

override_redirect

The override_redirect attribute of the created window. If True, it indicates that the client wants this window to be immune to interception by the window manager of configuration requests. Window managers normally should ignore this event if override_redirect is True.

Notes

For descriptions ...

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.