[Xcb] Problem with XCB Python and RandR
Alberto Milone
albertomilone at gmail.com
Sat Oct 18 06:07:13 PDT 2008
2008/10/18 Peter Harris <peter.harris at hummingbird.com>
> I suspect you want something like:
> self.conn.randr.GetCrtcInfo(resources.crtcs[it],
> resources.config_timestamp)
>
> > and the following error:
> > xcb.randr.BadCrtc: <xcb.randr.CrtcError object at 0x9fd0b6c>
>
> ...since whatever an object passed through 'I' resolves to, it's not an
> XID that the server recognizes.
>
> Peter Harris
>
Ok, I did as you said and I called that function in the following way (note:
crtc.id is equal to resources.crtcs[it]):
cookie = self.conn.randr.GetCrtcInfo(crtc.id, resources.config_timestamp)
info = cookie.reply()
but I get this:
File "/usr/local/lib/python2.5/site-packages/xcb/randr.py", line 227, in
__init__
self.outputs = xcb.List(self, count, self.num_outputs, 'I', 4)
xcb.Exception: Protocol object buffer too short.
This is weird as I have no problem when I call GetOutputInfo():
cookie = self.conn.randr.GetOutputInfo(output.id, resources
.config_timestamp)
I have tried the latest release of xpyb (1.0) too but it doesn't solve the
problem.
Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/xcb/attachments/20081018/48fa323f/attachment.htm
More information about the Xcb
mailing list