xgb: github.com/BurntSushi/xgb/examples

Directories

PathSynopsis
atoms
create-windowExample create-window shows how to create a window, map it, resize it, and listen to structure and key events (i.e., when the window is resized by the window manager, or when key presses/releases are made when the window has focus).
get-active-windowExample get-active-window reads the _NET_ACTIVE_WINDOW property of the root window and uses the result (a window id) to get the name of the window.
randrExample randr uses the randr protocol to get information about the active heads.
xineramaExample xinerama shows how to query the geometry of all active heads.

Updated 2019-12-21. Refresh now. Tools for package owners.