Vote count:
0
When I do XGetWindowProperty on atoms that return strings, such as _NET_WM_NAME
, WM_CLASS
, WM_NAME
. They are returning an array of characters. However when I ask for long or short types like _NET_WM_PID
it returns an array of longs, for the PID its just 1 element array, the nitems_return
argument is populated with number of elements returned in the array, so for PID its 1. But for the string atoms, the nitems_return
hold number of characters returned.
I tested convenience function of XGetWMName
and this set the nitems
field of XTextProperty
to number of characters returned which matches XGetWindowProperty
, so I was wondering, is there ever a chance that XGetWindowProperty can returned number of elements in array like for long and short? OR is there only ever just one string associated with those string atoms?
Thanks
Array of multiple strings possible? Or just array of characters for one string? XGetWindowProperty on atom's where we know a string is returned
Aucun commentaire:
Enregistrer un commentaire