From d7589ca80b81ca4f743e74c88629e4e39a86445d Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 17 Jun 2009 12:30:17 +0000 Subject: [PATCH] move like defines to a central, logical location; no binary change. aok oga@ --- calmwm.h | 6 ++++++ menu.c | 5 ----- search.c | 2 -- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/calmwm.h b/calmwm.h index 3c825cf..c796058 100644 --- a/calmwm.h +++ b/calmwm.h @@ -33,6 +33,12 @@ #define ChildMask (SubstructureRedirectMask|SubstructureNotifyMask) #define ButtonMask (ButtonPressMask|ButtonReleaseMask) #define MouseMask (ButtonMask|PointerMotionMask) +#define KeyMask (KeyPressMask|ExposureMask) +#define MenuMask (ButtonMask|ButtonMotionMask|ExposureMask| \ + PointerMotionMask) +#define MenuGrabMask (ButtonMask|ButtonMotionMask|StructureNotifyMask|\ + PointerMotionMask) +#define SearchMask (KeyPressMask|ExposureMask) enum cwmcolor { CWM_COLOR_BORDOR_ACTIVE, diff --git a/menu.c b/menu.c index a6cd6ae..16cf400 100644 --- a/menu.c +++ b/menu.c @@ -18,11 +18,6 @@ #include "headers.h" #include "calmwm.h" -#define KeyMask (KeyPressMask|ExposureMask) -#define MenuMask (ButtonMask|ButtonMotionMask|ExposureMask| \ - PointerMotionMask) -#define MenuGrabMask (ButtonMask|ButtonMotionMask|StructureNotifyMask|\ - PointerMotionMask) #define PROMPT_SCHAR '»' #define PROMPT_ECHAR '«' diff --git a/search.c b/search.c index e3e296e..01a130e 100644 --- a/search.c +++ b/search.c @@ -20,8 +20,6 @@ #include "headers.h" #include "calmwm.h" -#define SearchMask (KeyPressMask|ExposureMask) - static int strsubmatch(char *, char *, int); /*