size_t GetMonitors(Display *dpy, Window window, Monitor *out_monitors, size_t max_monitors)
Queries the current monitor configuration.
Definition: monitors.c:243
void SelectMonitorChangeEvents(Display *dpy, Window window)
Enable receiving monitor change events for the given display at w.
Definition: monitors.c:277
int IsMonitorChangeEvent(Display *dpy, int type)
Returns the event type that indicates a change to the monitor configuration.
Definition: monitors.c:290