Name
ReparentNotify — xreparent
When Generated
A ReparentNotify event reports when a
client successfully reparents a window.
Select With
This event is selected with
SubstructureNotifyMask by specifying the window
ID of the old or the new parent window or with
StructureNotifyMask by specifying the window
ID.
XEvent Structure Name
typedef union _XEvent {
...
XReparentEvent xreparent;
...
} 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 event;
Window window;
Window parent;
int x, y;
Bool override_redirect;
} XReparentEvent;Event Structure Members
windowThe window whose parent window was changed.
parentThe new parent of the window.
x,yThe coordinates of the upper-left pixel of the window’s border relative to the new parent window’s origin.
override_redirectThe
override_redirectattribute of the reparented window. IfTrue, it indicates that the client wants this window to be immune to meddling by the window manager. Window managers normally should not have reparented this window to begin with.
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