From bf6ab0ba4c35362337ea5228ac731e734bec49a1 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Tue, 24 Jul 2018 17:08:10 -0400 Subject: [PATCH] tests: Mock the keyboard layout API enough to stop getting errors. It IS NOT correct, the point is to be able to load the keyboard widget with errors. --- tests/examples/shims/awesome.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/examples/shims/awesome.lua b/tests/examples/shims/awesome.lua index 990a2a224..6af6f0e93 100644 --- a/tests/examples/shims/awesome.lua +++ b/tests/examples/shims/awesome.lua @@ -46,6 +46,14 @@ awesome.startup = true function awesome.register_xproperty() end +function awesome.xkb_get_group_names() + return "pc+us+inet(evdev)" +end + +function awesome.xkb_get_layout_group() + return 0 +end + awesome.load_image = lgi.cairo.ImageSurface.create_from_png function awesome.pixbuf_to_surface(_, path)