owner-events is not honoured on passive button grabs
@whot
Submitted by Peter Hutterer Assigned to Xorg Project Team
Description
A passive grab with owner-events false should report events only if selected by the event mask. the owner-events field is ignored when the event that caused the grab activation is sent to the client (code as of 1.13RC5 is in ActivatePassiveGrab).
Test case:
- window with ButtonPress event mask set
- passive grab on window with empty event mask
- a button press on the window
For owner-events true, we expect a ButtonPress event For owner-events false, we do not expect a ButtonPress event
This is an old bug, reproduced on 1.13RC5, 1.10.6 (RHEL6.3 server) and the RHEL5 xorg-x11-server-Xorg-1.1.1-48.76.el5.
This may be protocol spec ambiguity. It is not clear if the button press event should always be delivered to a client, regardless of the grab event mask.
Version: git