mirror of
https://github.com/brl/mutter.git
synced 2025-06-27 07:27:05 +00:00
Make VT switch API explicitly part of the native backend
It already was, more or less, but make it a bit more in your face. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2718>
This commit is contained in:
@ -3573,10 +3573,13 @@ handle_switch_vt (MetaDisplay *display,
|
||||
MetaKeyBinding *binding,
|
||||
gpointer dummy)
|
||||
{
|
||||
MetaContext *context = meta_display_get_context (display);
|
||||
MetaBackend *backend = meta_context_get_backend (context);
|
||||
gint vt = binding->handler->data;
|
||||
GError *error = NULL;
|
||||
|
||||
if (!meta_activate_vt (vt, &error))
|
||||
if (!meta_backend_native_activate_vt (META_BACKEND_NATIVE (backend),
|
||||
vt, &error))
|
||||
{
|
||||
g_warning ("Failed to switch VT: %s", error->message);
|
||||
g_error_free (error);
|
||||
|
Reference in New Issue
Block a user