[Xcb] [Bug 20933] New: xpyb: GetProperty returns incorrect value

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Mar 29 10:12:29 PDT 2009


http://bugs.freedesktop.org/show_bug.cgi?id=20933

           Summary: xpyb: GetProperty returns incorrect value
           Product: XCB
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Library
        AssignedTo: xcb at lists.freedesktop.org
        ReportedBy: dlitz at dlitz.net


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:

=== SNIP ===
# 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()
=== SNIP ===

The values I get back look like this:

=== SNIP ===
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]
=== SNIP ===

Am I doing something wrong?


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Xcb mailing list