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
parentThe ID of the created window’s parent.
windowThe ID of the created window.
x,yThe coordinates of the created window relative to its parent.
width,heightThe width and height in pixels of the created window.
border_widthThe width in pixels of the border of the created window.
override_redirectThe
override_redirectattribute of the created window. IfTrue, 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 ifoverride_redirectisTrue.
Notes
For descriptions ...
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