1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 04:20:27 +01:00

Code refactoring: replaced macro 'MWM_HINTS' by 'USE_MWM_HINTS' for consistency

The usual way to define a macro in is to name macro with 'USE_xxx' when
they are used to enable a feature 'xxx'.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2015-04-06 17:58:10 +02:00
committed by Carlos R. Mafra
parent 30fe0fb05f
commit 1cef020eb3
4 changed files with 7 additions and 7 deletions

View File

@@ -1312,7 +1312,7 @@ void wShowInfoPanel(WScreen *scr)
strbuf = wstrappend(strbuf, _("\nAdditional support for: "));
strbuf = wstrappend(strbuf, "WMSPEC");
#ifdef MWM_HINTS
#ifdef USE_MWM_HINTS
strbuf = wstrappend(strbuf, ", MWM");
#endif

View File

@@ -21,7 +21,7 @@
#include "wconfig.h"
#ifdef MWM_HINTS
#ifdef USE_MWM_HINTS
#include <X11/Xlib.h>
#include <X11/Xutil.h>
@@ -201,4 +201,4 @@ void wMWMCheckClientHints(WWindow *wwin)
setupMWMHints(wwin, &hints);
}
#endif /* MWM_HINTS */
#endif /* USE_MWM_HINTS */

View File

@@ -37,7 +37,7 @@
#define ANIMATIONS
/* support for Motif window manager (mwm) window hints */
#define MWM_HINTS
#define USE_MWM_HINTS
/*
* Undefine BALLOON_TEXT if you don't want balloons for showing extra

View File

@@ -65,7 +65,7 @@
#include "winmenu.h"
#include "osdep.h"
#ifdef MWM_HINTS
#ifdef USE_MWM_HINTS
# include "motif.h"
#endif
#include "wmspec.h"
@@ -343,9 +343,9 @@ void wWindowSetupInitialAttributes(WWindow *wwin, int *level, int *workspace)
int tmp_workspace = -1;
int tmp_level = INT_MIN; /* INT_MIN is never used by the window levels */
#ifdef MWM_HINTS
#ifdef USE_MWM_HINTS
wMWMCheckClientHints(wwin);
#endif /* MWM_HINTS */
#endif /* USE_MWM_HINTS */
wNETWMCheckClientHints(wwin, &tmp_level, &tmp_workspace);