tAdd an NULL event callback - glazier - window management experiments
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit a225cf5fc84fe563bf057fbc5e98d96664cdd8bc
(DIR) parent 81dd8151eb2a62fc3d9ba77bdd6acb87933af3b0
(HTM) Author: Willy Goiffon <dev@z3bra.org>
Date: Fri, 18 Oct 2019 23:08:48 +0200
Add an NULL event callback
Diffstat:
M glazier.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/glazier.c b/glazier.c
t@@ -5,6 +5,7 @@
#include "config.h"
#define LEN(x) (sizeof(x)/sizeof(x[0]))
+#define NO_EVENT 0
struct ev_callback_t {
uint32_t type;
t@@ -26,6 +27,7 @@ static const struct ev_callback_t cb[] = {
{ XCB_CREATE_NOTIFY, cb_create },
{ XCB_BUTTON_PRESS, cb_default },
{ XCB_BUTTON_RELEASE, cb_default },
+ { NO_EVENT, cb_default },
};
static int