Skip to content
Commit de908658 authored by Derek Foreman's avatar Derek Foreman Committed by Pekka Paalanen
Browse files

wayland-server: log an error for events with wrong client objects



Check that all the objects in an event belong to the same client as
the resource posting it.  This prevents a compositor from accidentally
mixing client objects and posting an event that causes a client to
abort with a cryptic message.

Instead the client will now be disconnected as it is when the compositor
tries to send a null for a non-nullable object, and a log message
will be printed by the compositor.

Reviewed-by: default avatarYong Bakos <ybakos@humanoriented.com>
Reviewed-by: default avatarBryce Harrington <bryce@osg.samsung.com>
Signed-off-by: default avatarDerek Foreman <derekf@osg.samsung.com>
Reviewed-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
parent efae9532
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment