mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +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:
committed by
Carlos R. Mafra
parent
30fe0fb05f
commit
1cef020eb3
@@ -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
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user