Skip to content

How do I use SendExtensionEvent? #158

@elParaguayo

Description

@elParaguayo

I've got an open PR in qtile (qtile/qtile#4557) using PointerBarriers from xfixes and xinput. I'd like to write a test for this and have had limited success using FakeInput from xtest. I was hoping I could just send a synthetic event but have had no joy with that either.

I see xinput has SendExtensionEvent which sounds promising but I'm not clear how to use it. Do I need to put the event into a buffer object rather than passing the packed data? I also have no idea what classes (https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/blob/master/src/xinput.xml?ref_type=heads#L2725) are meant to be.

Lastly, I'm also concerned that this won't at all as the notes on xcbproto suggest we can't send xge events which would include the BarrierHitEvent.

Any tips would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions