context: Move X11 display policy under the context
The context implementations already effectively dictate the policy, so let them do it more directly instead of going indirectly via global variables. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
This commit is contained in:
@ -212,6 +212,12 @@ meta_context_get_compositor_type (MetaContext *context)
|
||||
return META_CONTEXT_GET_CLASS (context)->get_compositor_type (context);
|
||||
}
|
||||
|
||||
MetaX11DisplayPolicy
|
||||
meta_context_get_x11_display_policy (MetaContext *context)
|
||||
{
|
||||
return META_CONTEXT_GET_CLASS (context)->get_x11_display_policy (context);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
meta_context_real_configure (MetaContext *context,
|
||||
int *argc,
|
||||
|
Reference in New Issue
Block a user