[Xcb] XFixes CreateRegion with Python

Joshua Higgins joshiggins at gmail.com
Sun Jan 13 04:50:46 PST 2013


Hi all,

I'm trying to create an xfixes region in python to pass into
set_window_shape_region.

    conn = xcb.xcb.connect()

    xfixes = self.conn(xcb.xfixes.key)

    shapeRegion = conn.generate_id()

    xfixes.CreateRegionChecked(shapeRegion, 1, (0,0,0,0)).check()

    xfixes.SetWindowShapeRegion(windowxid, xcb.shape.SK.Input, 0, 0,
shapeRegion)

results in..

        xfixes.CreateRegionChecked(shapeRegion, 1, (0,0,0,0)).check()
    xcb.xproto.BadRequest: <xcb.xproto.RequestError object at 0x92fedac>


Removing the .check() there is no errors on the output but the input
shape is not applied to the window.

Any ideas?

Thanks,
Josh.

--
Josh Higgins
joshiggins at gmail.com


More information about the Xcb mailing list