xpyb: GetProperty returns incorrect value
Submitted by Dwayne Litzenberger
Assigned to xcb mailing list dummy
Description
I'm trying to learn XCB via xpyb-1.0, and I noticed what I think is a bug.
I'm trying to get the value of the _NET_SUPPORTED property on the root window. According to "xprop -root | grep ^_NET_SUPPORTED | cut -d= -f2 | wc -w", there are 76 atoms in my _NET_SUPPORTED.
I have attached a script to get that same list of atoms, but it looks like the (auto-generated) value() method on GetPropertyReply is returning 76 CARD8 values instead of 76 CARD32 values.
I am invoking GetProperty like this:
# Get the _NET_SUPPORTED property
voidcookie = conn.core.GetProperty(
False, # delete
root_window, # window
XA_NET_SUPPORTED, # property
XA_ATOM, # type
0, # long_offset
65535) # long_length
reply = voidcookie.reply()
The values I get back look like this:
reply.format = 32
reply.type = 1 ('PRIMARY')
reply.bytes_after = 0
reply.value_len = 76
len(reply.value) = 76
reply.value = [74, 1, 0, 0, 126, 1, 0, 0, 36, 1, 0, 0, 79, 1, 0, 0, 80, 1, 0, 0, 81, 1, 0, 0, 35, 1, 0, 0, 130, 1, 0, 0, 89, 1, 0, 0, 128, 1, 0, 0, 129, 1, 0, 0, 91, 1, 0, 0, 131, 1, 0, 0, 132, 1, 0, 0, 43, 1, 0, 0, 90, 1, 0, 0, 42, 1, 0, 0, 137, 1, 0, 0, 40, 1, 0, 0]
Am I doing something wrong?