aboutsummaryrefslogtreecommitdiff
path: root/events.h
diff options
context:
space:
mode:
Diffstat (limited to 'events.h')
-rw-r--r--events.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/events.h b/events.h
index d2e7c6d..4e60d2a 100644
--- a/events.h
+++ b/events.h
@@ -21,22 +21,18 @@
#include <X11/Xlib.h>
-typedef struct {
- KeySym ksym;
- Bool reload;
- const char *cmdline;
-} command_t;
-
-typedef int arg_t;
+typedef void* arg_t;
typedef struct {
+ Bool ctrl;
KeySym ksym;
int (*handler)(arg_t);
arg_t arg;
} keymap_t;
typedef struct {
- unsigned int mod;
+ Bool ctrl;
+ Bool shift;
unsigned int button;
int (*handler)(arg_t);
arg_t arg;
@@ -63,5 +59,7 @@ int rotate(arg_t);
int zoom(arg_t);
int fit_to_win(arg_t);
int fit_to_img(arg_t);
+int open_with(arg_t);
+int run_command(arg_t);
#endif /* EVENTS_H */