keybindings: Only add VT keybindings if we're using the native backend

This commit is contained in:
Jasper St. Pierre 2014-05-29 12:09:10 -04:00
parent fe823b3553
commit b240a5e819

View File

@ -3475,7 +3475,8 @@ init_builtin_key_bindings (MetaDisplay *display)
META_KEYBINDING_ACTION_SET_SPEW_MARK, META_KEYBINDING_ACTION_SET_SPEW_MARK,
handle_set_spew_mark, 0); handle_set_spew_mark, 0);
if (meta_is_wayland_compositor ()) MetaBackend *backend = meta_get_backend ();
if (META_IS_BACKEND_NATIVE (backend))
{ {
add_builtin_keybinding (display, add_builtin_keybinding (display,
"switch-to-session-1", "switch-to-session-1",