XILISTPROPERTIES(3)

πŸ’– XILISTPROPERTIES πŸ’–

okay bestie, welcome to the XILISTPROPERTIES(3) manual page β€” yes it's from the X11 input extension crew and no it is not scary, i promise 🫢


✨ NAME ✨

XIListProperties β€” literally just lists a device's properties. that's it. that's the whole job. πŸ’…


🌸 SYNOPSIS 🌸

#include <X11/extensions/XInput2.h>

Atom* XListProperties( Display *display,
                       int deviceid,
                       int *nprops_return);
  • display β€” the connection to the X server, your lil link to the whole situation πŸ”Œ
  • deviceid β€” the device you wanna list the properties for, bestie 🎯
  • nprops_return β€” this one tells you the number of Atoms returned, like a lil receipt of how many you got 🧾

πŸ¦‹ DESCRIPTION πŸ¦‹

So the XIListProperties function returns a list of the properties that are attached to the input device you specified with deviceid. And here's the tea: each device can have an arbitrary number of properties attached to it β€” some of them were created by the driver and/or server, and others were created by clients at runtime. so yeah, it's a whole mixed bag πŸ‘‘

The client is expected to free the list of properties using XFree. do not forget this, bestie, that's your responsibility, not the server's 😭

Also XIListProperties can generate a BadDevice error. keep that in mind ✨


πŸ’€ DIAGNOSTICS πŸ’€

  • BadDevice β€” an invalid device was specified. the device does not exist. it's giving ghost device fr fr πŸ‘»

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie!! this iconic lil manual is XILISTPROPERTIES(3) and it's dated 05/18/2026. go slay your property-listing era πŸ’…βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from