From d86c95d7951236199d9b11314e262d8ed71ad449 Mon Sep 17 00:00:00 2001 From: Bert Date: Fri, 12 Aug 2011 17:14:14 +0200 Subject: Made run_command() a normal key/button handler --- events.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'events.h') diff --git a/events.h b/events.h index d2e7c6d..4e60d2a 100644 --- a/events.h +++ b/events.h @@ -21,22 +21,18 @@ #include -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 */ -- cgit v1.2.3-54-g00ecf