server: check global interface on bind

The interface name provided by the client isn't used at all.

Check it matches the global's interface name to prevent object interface
mismatches between the client and the server. These are especially easy to get
when mixing up global names and other IDs in the client.

Signed-off-by: Simon Ser <>
Closes: wayland/wayland#113
1 job for check-interface-on-bind in 1 minute and 26 seconds (queued for 8 seconds)
Status Job ID Name Coverage
passed #545371