diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-06-22 20:46:17 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-06-22 20:46:17 +0530 |
| commit | 5676f42406ac28f94b96927bd576fc6f5a0ef955 (patch) | |
| tree | 3534350808078e84b438578ac58478d17970bc29 | |
| parent | aa1d161ba5a2b9e8d983f377548303fdf29250f8 (diff) | |
| parent | b765e4811bdc0b570a7a2542cb7d3b1b2e2064f4 (diff) | |
| download | shotkey-5676f42406ac28f94b96927bd576fc6f5a0ef955.tar.gz shotkey-5676f42406ac28f94b96927bd576fc6f5a0ef955.zip | |
Merge branch 'master' into personal
| -rw-r--r-- | shotkey.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -22,8 +22,8 @@ typedef struct ModeProperties { #define NormalMode -1 -#define cmd(c) (Command) { c, NormalMode, False } -#define mode(m, p) (Command) { NULL, m, p } +#define cmd(c) { c, NormalMode, False } +#define mode(m, p) { NULL, m, p } #include "config.h" @@ -95,9 +95,6 @@ void set_mode(int mode, unsigned int persist) { } void run(Display* dpy, Window win, Command command) { - Key mode_key; - unsigned int i; - if (command.command) { char* cmd[] = {shell, "-c", command.command, NULL}; spawn(cmd); |
