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
window
The window whose parent window was changed.
parent
The new parent of the window.
x
,y
The coordinates of the upper-left pixel of the window’s border relative to the new parent window’s origin.
override_redirect
The
override_redirect
attribute 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.
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.