client: check event opcode in queue_event

If the client binds to a global with an interface mismatch, it may receive an
event from the server with an unknown opcode. See [1].

Instead of crashing, print a more useful debug message and close the connection.

[1]: wayland/wayland#113

Signed-off-by: Simon Ser <simon.ser@intel.com>
1 job for queue-event-check-event-opcode in 3 minutes and 35 seconds (queued for 3 minutes and 43 seconds)
Status Job ID Name Coverage
  Build
passed #563710
build-native

00:03:35