mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
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:
parent
804ab7894f
commit
b64b159109
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user