Carlos Garnacho e18aa564b0 wayland: Clean up meta_wayland_data_device_set_primary()
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)
2020-01-31 15:18:16 +01:00
..
2019-07-18 11:01:09 +02:00
2018-07-24 13:16:36 +00:00