wayland: Avoid warning when switching out into another vt

meta_wayland_pointer_get_client_pointer() may be called when the
MetaWaylandPointer as been already shut down, so the hash table will be
NULL at that moment.
This commit is contained in:
Carlos Garnacho 2015-08-14 14:48:43 +02:00
parent 804ab7894f
commit b64b159109

View File

@ -111,6 +111,8 @@ MetaWaylandPointerClient *
meta_wayland_pointer_get_pointer_client (MetaWaylandPointer *pointer,
struct wl_client *client)
{
if (!pointer->pointer_clients)
return NULL;
return g_hash_table_lookup (pointer->pointer_clients, client);
}