x11-display: Get _NET_WM_NAME from context

It's equivalent to the name that was passed when the context was
created.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
This commit is contained in:
Jonas Ådahl
2021-03-03 22:12:01 +01:00
parent d3b7d8df0d
commit 7d0aaa14d1
4 changed files with 12 additions and 20 deletions

View File

@ -117,6 +117,14 @@ meta_context_notify_ready (MetaContext *context)
META_CONTEXT_GET_CLASS (context)->notify_ready (context);
}
const char *
meta_context_get_name (MetaContext *context)
{
MetaContextPrivate *priv = meta_context_get_instance_private (context);
return priv->name;
}
/**
* meta_context_get_backend:
* @context: The #MetaContext