From eb42707bce381cd7501a246629604fdeb8728445 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 19 Oct 2023 00:11:52 -0700 Subject: key: trivial whitespace/formatting fixup --- src/key.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/key.c') diff --git a/src/key.c b/src/key.c index cf1be93..07b3abf 100644 --- a/src/key.c +++ b/src/key.c @@ -107,12 +107,12 @@ void vwm_key_released(vwm_t *vwm, Window win, XKeyReleasedEvent *keyrelease) /* Called in response to KeyPress events, I currenly only grab Mod1 keypress events */ void vwm_key_pressed(vwm_t *vwm, Window win, XKeyPressedEvent *keypress) { - vwm_window_t *vwin; - KeySym sym; - static KeySym last_sym; - static typeof(keypress->state) last_state; - static int repeat_cnt = 0; - int do_grab = 0; + vwm_window_t *vwin; + KeySym sym; + static KeySym last_sym; + static typeof(keypress->state) last_state; + static int repeat_cnt = 0; + int do_grab = 0; sym = XLookupKeysym(keypress, 0); @@ -128,12 +128,12 @@ void vwm_key_pressed(vwm_t *vwm, Window win, XKeyPressedEvent *keypress) switch (sym) { #define launcher(_sym, _label, _argv)\ - case _sym: \ - { \ + case _sym: { \ char *args[] = {"/bin/sh", "-c", "screen -dr " CONSOLE_SESSION_STRING " -X screen /bin/sh -i -x -c \"" _argv " || sleep 86400\"", NULL};\ vwm_launch(vwm, args, VWM_LAUNCH_MODE_BG);\ break; \ } + #include "launchers.def" #undef launcher case XK_Alt_L: /* transaction abort */ -- cgit v1.2.3