1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00

configure: Added option to disable animations

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.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2015-05-08 13:19:02 +02:00
committed by Carlos R. Mafra
parent 6ef010d974
commit 0bab67f9be
4 changed files with 18 additions and 4 deletions

3
README
View File

@@ -201,7 +201,8 @@ while keeping a nice appearance and good functionality, follow the items bellow:
- edit wconfig.h and disable the NUMLOCK_HACK and the features you don't use - edit wconfig.h and disable the NUMLOCK_HACK and the features you don't use
anyway (keep in mind that some of the #defines might not work, as they are not anyway (keep in mind that some of the #defines might not work, as they are not
fully supported). Make sure to always keep NumLock and ScrollLock turned off. fully supported). Make sure to always keep NumLock and ScrollLock turned off.
- turn on DisableAnimations. You can also #undefine ANIMATIONS in wconfig.h - turn on DisableAnimations. You can also specify --disable-animation at compile
time to the configure script.
- strip down the default IconPath and PixmapPath entries to contain only - strip down the default IconPath and PixmapPath entries to contain only
the paths that you really have in your system. the paths that you really have in your system.
- do not use large images in the root background - do not use large images in the root background

View File

@@ -289,6 +289,18 @@ AC_ARG_WITH(incs-from, AS_HELP_STRING([--with-incs-from], [pass compiler flags t
dnl Features Configuration dnl Features Configuration
dnl ====================== dnl ======================
AC_ARG_ENABLE([animations],
[AS_HELP_STRING([--disable-animations], [disable permanently animations @<:@default=enabled@:>@])],
[AS_CASE(["$enableval"],
[yes|no], [],
[AC_MSG_ERROR([bad value $enableval for --enable-animations])])],
[enable_animations="yes"])
AS_IF([test "x$enable_animations" = "xno"],
[unsupported="$unsupported Animations"],
[AC_DEFINE([USE_ANIMATIONS], [1], [Defined when user did not request to disable animations])
supported_core="$supported_core Animations"])
AC_ARG_ENABLE([mwm-hints], AC_ARG_ENABLE([mwm-hints],
[AS_HELP_STRING([--disable-mwm-hints], [disable support for Motif WM hints @<:@default=enabled@:>@])], [AS_HELP_STRING([--disable-mwm-hints], [disable support for Motif WM hints @<:@default=enabled@:>@])],
[AS_CASE(["$enableval"], [AS_CASE(["$enableval"],

View File

@@ -566,6 +566,10 @@ screen size.
@subsection Feature Selection @subsection Feature Selection
@table @option @table @option
@item --disable-animations
Disable animations permanently, by not compiling the corresponding code into @sc{Window Maker}.
When enabled (the default), you still have a run-time configuration option in @emph{WPrefs}.
@item --disable-mwm-hints @item --disable-mwm-hints
Disable support for Motif's MWM Window Manager hints. Disable support for Motif's MWM Window Manager hints.
These attributes were introduced by the Motif toolkit to ask for special window appearance requests. These attributes were introduced by the Motif toolkit to ask for special window appearance requests.

View File

@@ -33,9 +33,6 @@
* Also check the features you can enable through configure. * Also check the features you can enable through configure.
*/ */
/* If you want animations for iconification, shading, icon arrangement etc. */
#define USE_ANIMATIONS
/* /*
* Undefine BALLOON_TEXT if you don't want balloons for showing extra * Undefine BALLOON_TEXT if you don't want balloons for showing extra
* information, like window titles that are not fully visible. * information, like window titles that are not fully visible.