This makes the gesture able to get the events that would otherwise be meant for the background actor or client window. Fixes: #5335 Part-of: <!2304> (cherry picked from commit 9a093530)