Commit 31eafba9 authored by Ting-Wei Lan's avatar Ting-Wei Lan
Browse files

build: Fix build when native backend is disabled

https://bugzilla.gnome.org/show_bug.cgi?id=792281
parent 5eacdf7a
......@@ -442,6 +442,7 @@ maybe_restore_numlock_state (MetaWaylandKeyboard *keyboard)
static void
maybe_save_numlock_state (MetaWaylandKeyboard *keyboard)
{
#ifdef HAVE_NATIVE_BACKEND
MetaWaylandXkbInfo *xkb_info = &keyboard->xkb_info;
GsdKeyboardNumLockState numlock_state;
int numlock_active;
......@@ -474,6 +475,7 @@ maybe_save_numlock_state (MetaWaylandKeyboard *keyboard)
break;
}
g_settings_set_enum (keyboard->gsd_settings, "numlock-state", numlock_state);
#endif
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment