spmenu/libs/key.h
speedie e7ecfd4114 add hkeys array which allows us to press ctrl+alt+shift+delete to exit
out of spmenu even if we unbind our quit keybind
2023-05-16 19:34:02 +02:00

27 lines
666 B
C

/* See LICENSE file for copyright and license details. */
typedef struct {
unsigned int mode;
unsigned int mod;
KeySym keysym;
void (*func)(Arg *);
Arg arg;
} Key;
// user friendly names for all the modifiers we're using, but there are many more
#define Ctrl ControlMask
#define Shift ShiftMask
#define Alt Mod1Mask
#define AltGr Mod3Mask
#define Super Mod4Mask
#define ShiftGr Mod5Mask
static void updatenumlockmask(void);
static void keypress(XEvent *e);
static void grabkeyboard(void);
static void getcapsstate(void);
static Key ckeys[256];
static char capstext[16];
static Key hkeys[1] = { { -1, Ctrl|Alt|Shift, XK_Delete, quit, {0} } };