![Carlos Garnacho](/assets/img/avatar_default.png)
This function is already checking for the focus surface client matching the requestor. The type check was slightly bogus though as it'd be an screwup in our code, make it an assert instead. Also, move the check for the client having the focus into the upper call, so this and wl_data_device.set_selection code can get more in line. https://gitlab.gnome.org/GNOME/mutter/issues/878 (cherry picked from commit 16eb46105425a9a677c408f5a19e1bebae88a602)