logo

inaban

Distrustful Wayland Compositor (inspired by XMonad and dwm) git clone https://hacktivis.me/git/inaban.git
commit: c152eed6492b2b535636c909ea093ed2191e8230
parent 5a7d3c6e3f06fea2b67b709ffc58558788f409e6
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 10 May 2021 17:50:55 +0200

Revert "lock: Add quit shortcut"

This reverts commit 4bad9c7aead8ec4ea8cc6cd24db236055adae4c8.

Diffstat:

Mconfig.h7-------
Minaban.c10----------
2 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/config.h b/config.h @@ -29,11 +29,4 @@ static Shortcut shortcuts[] = { // {MODKEY, XKB_KEY_k, focusstack, {.i = -1}}, }; // clang-format on - -// clang-format off -static Shortcut shortcuts_locked[] = { - /* modifier, keysym, function, argument */ - {ModMask & ShiftMask, XKB_KEY_q, quit, {0}}, -}; -// clang-format on #endif /* CONFIG_H */ diff --git a/inaban.c b/inaban.c @@ -61,16 +61,6 @@ keyboard_handle_key(struct wl_listener *listener, void *data) if(server->locked == true) { // needs to be written - switch(event->state) - { - case WL_KEYBOARD_KEY_STATE_PRESSED: - for(size_t i = 0; i < LENGTH(shortcuts_locked); i++) - if((keysym == shortcuts_locked[i].keysym) && (modifiers == shortcuts_locked[i].mod) && - shortcuts_locked[i].func) - { - shortcuts_locked[i].func(&(shortcuts_locked[i].arg)); - } - } return; }