June 1994
Intermediate to advanced
821 pages
24h 40m
English
GravityNotify — xgravity
A GravityNotify event reports when a window
is moved because of a change in the size of its parent. This happens
when the win_gravity attribute of the child
window is something other than StaticGravity or
UnmapGravity.
This event is selected for a single window by specifying the
window ID of that window with
StructureNotifyMask. To receive notification of
movement due to gravity for a group of siblings, specify the parent
window ID with SubstructureNotifyMask.
typedef union _XEvent {
...
XGravityEvent xgravity;
...
} XEvent;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;
int x, y;
} XGravityEvent;eventThe window that selected the event.
windowThe window that was moved.
x, yThe new coordinates of the window relative to its parent.
Read now
Unlock full access