-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I use SendExtensionEvent
?
#158
Comments
Yeah, I agree that it looks like BarrierHitEvent won't work since its opcode is too high. What problems were you having with SendEvent, though? The man page says it should work with extension events too. |
Thanks for the reply. The problem is my I'm not entirely sure what I should put for the |
Hum, I'll take a little bit later today. I think you have to use xproto.EventMask.* with SendEvent, but it's not obvious to me which one of those barrier corresponds to: https://tronche.com/gui/x/xlib/events/mask.html Maybe try to set all the bits and see? |
Didn't work with all of those set either sadly. |
I've got an idea what the problem might be. Let me test something. |
Didn't work. I tried to use the |
Yeah, just reading the code it looks like it maybe won't work, in spite of what the man page says. Sorry, I didn't get a chance to look last night, perhaps later this week. |
No problem at all. Appreciate you taking a look. Happy to work on a fix if there is a problem within |
Hi, just wanted to say that I have not forgotten about this :). Here is a smaller xcffib test case:
Which I've been using with these (manual) patches to the bindings:
I've managed to crash xtrace,
so I guess they're not quite as good as the actual x server, which renders a LengthError. In any case, the x server really doesn't accept variable length events here, so the comment from the xml is right. googling around a little bit, these patches do not seem like they ever landed: https://xorg-devel.x.narkive.com/OPQdsFiP/handling-genericevents-in-xsendevent#post9 so maybe it's just not possible right now? anyway, I will keep digging. maybe we need to write some xserver code to make it work. |
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 whatclasses
(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.
The text was updated successfully, but these errors were encountered: