pop up windows
Steven J Abner
pheonix.sja at att.net
Sun Feb 16 08:31:57 UTC 2025
On Sun, Feb 16 2025 at 05:31:07 AM +0000, Bart Massey <bart at cs.pdx.edu>
wrote:
> More importantly, the grab is not complete until the reply to the
> xcb_grab_pointer() request has been received. That means you need to
> get that reply before going on. I ended up with code like this: it
> may not be quite what you want, but may be better than what you have.
Sorry, I must still be doing something wrong then. Unfortunately I
hadn't mentioned I tried with different masks, originally the one you
mention. Though this time I did also try without the cast uint16_t. I
added in the reply code too. Also add test of adding in 2 libraries
even though not needed. Did not try reposition to XCB_BUTTON_PRESS this
go round.
After fixing small detail, that tainted my findings, added '\n' to
fail print out, it appears that it fails both ways, as active and
passive grabs. The report on passive grab is delayed until the passive
grab finishes.
PS. if xcb was working, you also should have a problem. I accidentally
have a boo boo in the code, I left out xcb_ungrab_pointer() so on
running you should have to reboot since grab pointer aint letting go :)
Unless you caught that mistake before your test. Was one of the reasons
I was never so happy to reboot on XGrabPointer().
Steve
More information about the Xcb
mailing list