From 70c6494c4690aa079ebc31f6c0eef7f603707de3 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sun, 29 Sep 2013 17:09:54 +0200 Subject: [PATCH] wmaker: Changed name of parameter in macro WCHECK_STATE The name will be a problem with next change because it uses a too common word which will be useful at a better place. Took the opportunity to rewitre the check in the human logical thinking order to make it easier to read. --- src/WindowMaker.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WindowMaker.h b/src/WindowMaker.h index ec8d7467..473b8814 100644 --- a/src/WindowMaker.h +++ b/src/WindowMaker.h @@ -238,7 +238,7 @@ typedef enum { } wprog_state; -#define WCHECK_STATE(state) (state == WProgramState) +#define WCHECK_STATE(chk_state) (WProgramState == (chk_state)) #define WCHANGE_STATE(nstate) {\