From 1d069ab3b602da31179d800f2d6c65987ac6f4c1 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 13 Feb 2015 16:39:38 -0500 Subject: [PATCH] add ctrl+alt+backspace to kill wl-only e #barrel --- src/bin/e_comp_wl.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 018fc863b..bf4af0518 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -744,6 +744,16 @@ _e_comp_wl_cb_key_down(void *event) keycode = (ev->keycode - 8); if (!(cdata = e_comp->wl_comp_data)) return; +#ifdef HAVE_WAYLAND_ONLY + #ifndef E_RELEASE_BUILD + if ((ev->modifiers & ECORE_EVENT_MODIFIER_CTRL) && + ((ev->modifiers & ECORE_EVENT_MODIFIER_ALT) || + (ev->modifiers & ECORE_EVENT_MODIFIER_ALTGR)) && + eina_streq(ev->key, "BackSpace")) + exit(0); + #endif +#endif + end = (uint32_t *)cdata->kbd.keys.data + (cdata->kbd.keys.size / sizeof(*k)); for (k = cdata->kbd.keys.data; k < end; k++)