diff --git a/common/xutil.h b/common/xutil.h index 3dca3bf2..2bca8718 100644 --- a/common/xutil.h +++ b/common/xutil.h @@ -34,6 +34,8 @@ #include "common/list.h" +#define CLEANMASK(mask) (mask & ~(globalconf.numlockmask | XCB_MOD_MASK_LOCK)) + /* See http://tronche.com/gui/x/xlib/appendix/b/ for values */ #define CURSOR_FLEUR 52 #define CURSOR_LEFT_PTR 68 diff --git a/event.h b/event.h index 9aebd538..6017bff5 100644 --- a/event.h +++ b/event.h @@ -25,8 +25,6 @@ #include #include -#define CLEANMASK(mask) (mask & ~(globalconf.numlockmask | XCB_MOD_MASK_LOCK)) - int event_handle_buttonpress(void *, xcb_connection_t *, xcb_button_press_event_t *); int event_handle_configurerequest(void *, xcb_connection_t *, xcb_configure_request_event_t *); int event_handle_configurenotify(void *, xcb_connection_t *, xcb_configure_notify_event_t *); diff --git a/keybinding.c b/keybinding.c index 797d500e..333887ee 100644 --- a/keybinding.c +++ b/keybinding.c @@ -24,7 +24,6 @@ #include #include "keybinding.h" -#include "event.h" #include "window.h" extern awesome_t globalconf; diff --git a/keygrabber.c b/keygrabber.c index 005f57ee..76d2e0fb 100644 --- a/keygrabber.c +++ b/keygrabber.c @@ -22,7 +22,6 @@ #include #include "keygrabber.h" -#include "event.h" #include "structs.h" extern awesome_t globalconf; diff --git a/widget.c b/widget.c index dbd16c7e..efdd510e 100644 --- a/widget.c +++ b/widget.c @@ -26,7 +26,6 @@ #include "widget.h" #include "titlebar.h" -#include "event.h" extern awesome_t globalconf; diff --git a/widgets/taglist.c b/widgets/taglist.c index 9530cd20..84937e82 100644 --- a/widgets/taglist.c +++ b/widgets/taglist.c @@ -23,7 +23,6 @@ #include "widget.h" #include "tag.h" #include "lua.h" -#include "event.h" #include "common/markup.h" #include "common/tokenize.h" diff --git a/widgets/tasklist.c b/widgets/tasklist.c index b419d0b6..129a4243 100644 --- a/widgets/tasklist.c +++ b/widgets/tasklist.c @@ -22,7 +22,6 @@ #include "widget.h" #include "client.h" #include "focus.h" -#include "event.h" #include "ewmh.h" #include "tag.h" #include "common/markup.h"