1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-25 16:02:33 +01:00

configure: Added option to disable Motif WM Hints support

The old behaviour was to expect the user to go modify manually a source
file which is not a great idea because that's typically the kind of things
in charge of the configure script.

As a side effect, we can now use an automake conditional to avoid compiling
the source file in charge of the feature when not used, instead of trying
to compile an empty-looking file.

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

View File

@@ -52,8 +52,6 @@ wmaker_SOURCES = \
misc.h \
monitor.c \
monitor.h \
motif.c \
motif.h \
moveres.c \
pixmap.c \
pixmap.h \
@@ -110,6 +108,10 @@ wmaker_SOURCES = \
wsmap.c \
wsmap.h
if USE_MWM_HINTS
wmaker_SOURCES += motif.h motif.c
endif
if WM_OSDEP_BSD
wmaker_SOURCES += osdep_bsd.c
endif

View File

@@ -21,8 +21,6 @@
#include "wconfig.h"
#ifdef USE_MWM_HINTS
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <stdlib.h>
@@ -200,5 +198,3 @@ void wMWMCheckClientHints(WWindow *wwin)
if (getMWMHints(wwin->client_win, &hints))
setupMWMHints(wwin, &hints);
}
#endif /* USE_MWM_HINTS */

View File

@@ -36,9 +36,6 @@
/* If you want animations for iconification, shading, icon arrangement etc. */
#define ANIMATIONS
/* support for Motif window manager (mwm) window hints */
#define USE_MWM_HINTS
/*
* Undefine BALLOON_TEXT if you don't want balloons for showing extra
* information, like window titles that are not fully visible.