compositor,shell: move debug key code to core
The code for the key binding that triggers debug key bindings, that is,
the code that makes mod+SHIFT+SPACE work, used to live in shell.c. I
want to make the debug key bindings available in ivi-shell too, so this
code should be shared. Move it to core.
The code was originally introduced in
commit c509d2b1523364d38da3038eec7b46cd71acd3f5
so update the copyright in binding.c to reflect that.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Acked-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Daniel Stone <daniels@collabora.com>
diff --git a/src/compositor.h b/src/compositor.h
index 12fc617..099d187 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -1181,6 +1181,10 @@
weston_binding_destroy(struct weston_binding *binding);
void
+weston_install_debug_key_binding(struct weston_compositor *compositor,
+ uint32_t mod);
+
+void
weston_binding_list_destroy_all(struct wl_list *list);
void