Skip to content

grabHelper: Fix handling of events within the grabbed actor

Carlos Garnacho requested to merge wip/carlosg/grab-helper-captured-events into main

Commit d92b71d2 went overeager in the removal of the additional actors that were allowed to handle events (since the new grab infrastructure makes them unable to see events in the first place), and removed an early return in the captured event handler meant to let events go through in those cases.

Since the grabbing actor was also part of this group, this was also the code path where child actors of the grabbing actor could handle events. Removing these made the captured event handler eat most events meant for children. Add this check back, specifically for the grabbing actor.

While at it, explicitly check (and propagate) crossing events, since these are now enforced to be propagated (and warned about) in Mutter.

Closes: #4991 (closed)

Merge request reports